Skip to content

Commit f065f96

Browse files
authored
[Fix-17359][Task-API] Use sudo -i to avoid killing yarn application failed. (#17362)
1 parent 5d63e41 commit f065f96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils

dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/OSUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public static String getSudoCmd(String tenantCode, String command) {
308308
if (!isSudoEnable() || StringUtils.isEmpty(tenantCode)) {
309309
return command;
310310
}
311-
return String.format("sudo -u %s %s", tenantCode, command);
311+
return String.format("sudo -u %s -i %s", tenantCode, command);
312312
}
313313

314314
public static boolean isSudoEnable() {

0 commit comments

Comments
 (0)