You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sk...@apache.org on 2018/07/02 22:18:58 UTC

hadoop git commit: YARN-8485. Priviledged container app launch is failing intermittently. Contributed by Eric Yang

Repository: hadoop
Updated Branches:
  refs/heads/trunk ab2f8343a -> 53e267fa7


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/trunk
Commit: 53e267fa7232add3c21174382d91b2607aa6becf
Parents: ab2f834
Author: Shane Kumpf <sk...@apache.org>
Authored: Mon Jul 2 16:18:32 2018 -0600
Committer: Shane Kumpf <sk...@apache.org>
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: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org