private void extractMpiRTECommand(final String mpiExecOutput, final StringBuilder logCollector) {
        if (mpiContainerCommand != null) {
            return;
        }

        if (mpiExecOutput.startsWith("command") || mpiExecOutput.contains("<template>")) {
            LOG.info("Container mpi Command " + mpiExecOutput);
            if (mpiExecOutput.startsWith("command")) {
                // add orted prefix
                mpiContainerCommand =
                        "orted " + mpiExecOutput.replaceFirst("command:", "").replace("--daemonize", "");
            } else {
                int commandStartIndex = mpiExecOutput.indexOf("orted -mca");
                mpiContainerCommand = mpiExecOutput.substring(commandStartIndex);
            }
            if (conf.getBoolean(
                            HboxConfiguration.HBOX_CONTAINER_RUNNING_LOG_ENABLE,
                            HboxConfiguration.DEFAULT_HBOX_CONTAINER_RUNNING_LOG_ENABLE)
                    && null != logCollector) {
                logCollector.append(mpiExecOutput);
            }
        }
    }
Extract orted command from mpiexec
With option -mca plm_rsh_agent /bin/echo -mca plm_base_verbose 1
For openmpinossh version, sample command syntax is "command:-mca ess env -mca orte_ess_jobid "<jobid>" -mca orte_ess_vpid <template> -mca orte_ess_num_procs 31 --hnp-uri "<jobid>.0;tcp://xx.xx.xx.xx:xxxx"
For openmpi-3.1.4 version, sample command syntax is "/usr/bin/ssh <template>  orted -mca ess "env" -mca ess_base_jobid "<jobid>" -mca ess_base_vpid "<template>" -mca ess_base_num_procs "2" -mca orte_node_regex "qt[x:x,x]ss@0(2)" -mca orte_hnp_uri "<jobid>.0;tcp://xx.xx.xx.xx:xxxx" -mca plm_base_verbose "1" -mca plm "rsh" -mca pmix "^s1,s2,cray,isolated""
@param mpiExecOutput
@return
core/src/main/java/net/qihoo/hbox/AM/ApplicationMaster.java