From a31e0164912236630c485e5aeb908b43e3a67c61 Mon Sep 17 00:00:00 2001 From: Harsh J Date: Thu, 4 Dec 2014 03:16:08 +0530 Subject: [PATCH] YARN-2891. Failed Container Executor does not provide a clear error message. Contributed by Dustin Cote. (harsh) --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../main/native/container-executor/impl/container-executor.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index d44f46d9dd..91151ad99d 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -59,6 +59,9 @@ Release 2.7.0 - UNRELEASED IMPROVEMENTS + YARN-2891. Failed Container Executor does not provide a clear error + message. (Dustin Cote via harsh) + YARN-1979. TestDirectoryCollection fails when the umask is unusual. (Vinod Kumar Vavilapalli and Tsuyoshi OZAWA via junping_du) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/container-executor.c b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/container-executor.c index 9af916147b..4fc78b6210 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/container-executor.c +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/container-executor.c @@ -526,7 +526,7 @@ int check_dir(char* npath, mode_t st_mode, mode_t desired, int finalComponent) { int filePermInt = st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); int desiredInt = desired & (S_IRWXU | S_IRWXG | S_IRWXO); if (filePermInt != desiredInt) { - fprintf(LOGFILE, "Path %s does not have desired permission.\n", npath); + fprintf(LOGFILE, "Path %s has permission %o but needs permission %o.\n", npath, filePermInt, desiredInt); return -1; } }