From 2f264764a496ef526aec6e9a1ddc006e850eed14 Mon Sep 17 00:00:00 2001 From: Shane Kumpf Date: Mon, 2 Jul 2018 16:18:32 -0600 Subject: [PATCH] YARN-8485. Priviledged container app launch is failing intermittently. Contributed by Eric Yang (cherry picked from commit 53e267fa7232add3c21174382d91b2607aa6becf) --- .../src/main/native/container-executor/impl/utils/docker-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ffc349a10fd..d364227a57a 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) {