Browse Source

using OSUtils.execCmd when kill yarn app

pull/3/MERGE
Eights-LI 4 years ago
parent
commit
802de19cc0
  1. 2
      dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/ProcessUtils.java

2
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/ProcessUtils.java

@ -345,7 +345,7 @@ public class ProcessUtils {
}
logger.info("kill cmd:{}", runCmd);
Runtime.getRuntime().exec(runCmd);
OSUtils.exeCmd(runCmd);
} catch (Exception e) {
logger.error(String.format("Kill yarn application app id [%s] failed: [%s]", appId, e.getMessage()));
}

Loading…
Cancel
Save