YARN-2891. Failed Container Executor does not provide a clear error message. Contributed by Dustin Cote. (harsh)
(cherry picked from commit 4b13318dea7a1cbbbfc1f84207af829cbe2f720e)
This commit is contained in:
parent
25be97808b
commit
ee25c0d890
|
@ -29,6 +29,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)
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue