By default, submarine uses YARN service framework as runtime. If you want to add your own implementation. You can add a new RuntimeFactory implementation and configure following option to submarine.xml (which should be placed under same $HADOOP_CONF_DIR)
<property> <name>submarine.runtime.class</name> <value>... full qualified class name for your runtime factory ... </value> </property>