You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by we...@apache.org on 2025/07/25 08:21:27 UTC
(dolphinscheduler) branch dev updated: [Fix-17359][Task-API] Use sudo -i to avoid killing yarn application failed. (#17362)
This is an automated email from the ASF dual-hosted git repository.
wenjun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new f065f96227 [Fix-17359][Task-API] Use sudo -i to avoid killing yarn application failed. (#17362)
f065f96227 is described below
commit f065f96227b713da4ec95e07ffdf21677c867010
Author: njnu-seafish <su...@sina.com>
AuthorDate: Fri Jul 25 16:21:22 2025 +0800
[Fix-17359][Task-API] Use sudo -i to avoid killing yarn application failed. (#17362)
---
.../src/main/java/org/apache/dolphinscheduler/common/utils/OSUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/OSUtils.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/OSUtils.java
index dbfcea2ed8..f913f1a18e 100644
--- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/OSUtils.java
+++ b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/OSUtils.java
@@ -308,7 +308,7 @@ public class OSUtils {
if (!isSudoEnable() || StringUtils.isEmpty(tenantCode)) {
return command;
}
- return String.format("sudo -u %s %s", tenantCode, command);
+ return String.format("sudo -u %s -i %s", tenantCode, command);
}
public static boolean isSudoEnable() {