Repository: hadoop Updated Branches: refs/heads/HDFS-12090 9d7a9031a -> b210ee3ec
YARN-8485. Priviledged container app launch is failing intermittently. Contributed by Eric Yang Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/53e267fa Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/53e267fa Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/53e267fa Branch: refs/heads/HDFS-12090 Commit: 53e267fa7232add3c21174382d91b2607aa6becf Parents: ab2f834 Author: Shane Kumpf <[email protected]> Authored: Mon Jul 2 16:18:32 2018 -0600 Committer: Shane Kumpf <[email protected]> Committed: Mon Jul 2 16:18:32 2018 -0600 ---------------------------------------------------------------------- .../src/main/native/container-executor/impl/utils/docker-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/53e267fa/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/utils/docker-util.c ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/utils/docker-util.c b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/utils/docker-util.c index ffc349a..d364227 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/utils/docker-util.c +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/utils/docker-util.c @@ -1235,7 +1235,7 @@ static int check_privileges(const char *user) { if (ret != 1) { int child_pid = fork(); if (child_pid == 0) { - execl("/bin/sudo", "sudo", "-U", user, "-n", "-l", "docker", NULL); + execl("/usr/bin/sudo", "sudo", "-U", user, "-n", "-l", "docker", NULL); exit(INITIALIZE_USER_FAILED); } else { while ((waitid = waitpid(child_pid, &statval, 0)) != child_pid) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
