Skip to content

Commit

Permalink
use /bin/true for rsh_agent to aviod extra output
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangxinglei committed Jun 7, 2024
1 parent 747c56c commit 7044e56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/net/qihoo/hbox/AM/ApplicationMaster.java
Original file line number Diff line number Diff line change
Expand Up @@ -1669,8 +1669,8 @@ private void launchMpiExec() throws IOException {
// MPI related options
// bind-to none option
envLists.add("OMPI_MCA_hwloc_base_binding_policy=none");
// -mca plm_rsh_agent /bin/echo
envLists.add("OMPI_MCA_plm_rsh_agent=/bin/echo");
// -mca plm_rsh_agent /bin/true
envLists.add("OMPI_MCA_plm_rsh_agent=/bin/true");
// -mca plm_base_verbose 1
envLists.add("OMPI_MCA_plm_base_verbose=1");
// --oversubscribe
Expand Down Expand Up @@ -1744,7 +1744,7 @@ public void run() {
* @return
*/
private void processMpiExecOutput(String mpiExecOutput) {
if (mpiExecOutput.startsWith("command") || mpiExecOutput.contains("<template>")) {
if (mpiContainerCommand == null && (mpiExecOutput.startsWith("command") || mpiExecOutput.contains("<template>"))) {
LOG.info("Container mpi Command " + mpiExecOutput);
appendMessage(new Message(LogType.STDERR, mpiExecOutput));
if (mpiExecOutput.startsWith("command")) {
Expand Down

0 comments on commit 7044e56

Please sign in to comment.