@Override
            public void run() {
                try {
                    BufferedReader reader;
                    reader = new BufferedReader(new InputStreamReader(mpiExecProcess.getErrorStream()));
                    String mpiExecStderr;
                    while ((mpiExecStderr = reader.readLine()) != null) {
                        LOG.info(mpiExecStderr);
                        appendMessage(new Message(LogType.STDERR, mpiExecStderr));
                        extractMpiRTECommand(mpiExecStderr, null);
                        if (conf.getBoolean(
                                HboxConfiguration.HBOX_CONTAINER_RUNNING_LOG_ENABLE,
                                HboxConfiguration.DEFAULT_HBOX_CONTAINER_RUNNING_LOG_ENABLE)) {
                            amContainerStdErr.append(mpiExecStderr);
                        }
                    }
                } catch (Exception e) {
                    LOG.warn("Error in mpi exec process stderrThread");
                }
            }
Application Master launch "mpiexec" process locally for mpi app
core/src/main/java/net/qihoo/hbox/AM/ApplicationMaster.java