YARN-8485. Priviledged container app launch is failing intermittently. Contributed by Eric Yang

This commit is contained in:
Shane Kumpf 2018-07-02 16:18:32 -06:00
parent ab2f8343a9
commit 53e267fa72
1 changed files with 1 additions and 1 deletions

View File

@ -1235,7 +1235,7 @@ static int check_privileges(const char *user) {
if (ret != 1) { if (ret != 1) {
int child_pid = fork(); int child_pid = fork();
if (child_pid == 0) { 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); exit(INITIALIZE_USER_FAILED);
} else { } else {
while ((waitid = waitpid(child_pid, &statval, 0)) != child_pid) { while ((waitid = waitpid(child_pid, &statval, 0)) != child_pid) {