HADOOP-9593 stack trace printed at ERROR for all yarn clients without hadoop.home set
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1485842 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
43876770d9
commit
10d21ac779
@ -370,6 +370,9 @@ Trunk (Unreleased)
|
|||||||
HADOOP-9481. Broken conditional logic with HADOOP_SNAPPY_LIBRARY. (Vadim
|
HADOOP-9481. Broken conditional logic with HADOOP_SNAPPY_LIBRARY. (Vadim
|
||||||
Bondarev via atm)
|
Bondarev via atm)
|
||||||
|
|
||||||
|
HADOOP-9593. stack trace printed at ERROR for all yarn clients without
|
||||||
|
hadoop.home set (stevel)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-7761. Improve the performance of raw comparisons. (todd)
|
HADOOP-7761. Improve the performance of raw comparisons. (todd)
|
||||||
|
@ -227,7 +227,9 @@ private static String checkHadoopHome() {
|
|||||||
home = homedir.getCanonicalPath();
|
home = homedir.getCanonicalPath();
|
||||||
|
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
LOG.error("Failed to detect a valid hadoop home directory", ioe);
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Failed to detect a valid hadoop home directory", ioe);
|
||||||
|
}
|
||||||
home = null;
|
home = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -305,10 +307,13 @@ private static boolean isSetsidSupported() {
|
|||||||
shexec = new ShellCommandExecutor(args);
|
shexec = new ShellCommandExecutor(args);
|
||||||
shexec.execute();
|
shexec.execute();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
LOG.warn("setsid is not available on this machine. So not using it.");
|
LOG.debug("setsid is not available on this machine. So not using it.");
|
||||||
setsidSupported = false;
|
setsidSupported = false;
|
||||||
} finally { // handle the exit code
|
} finally { // handle the exit code
|
||||||
LOG.info("setsid exited with exit code " + shexec.getExitCode());
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("setsid exited with exit code "
|
||||||
|
+ (shexec != null ? shexec.getExitCode() : "(null executor)"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return setsidSupported;
|
return setsidSupported;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user