HADOOP-11172. Improve error message in Shell#runCommand on OutOfMemoryError. (Yongjun Zhang via wang)
This commit is contained in:
parent
b2f6197523
commit
4b2834898c
|
@ -353,6 +353,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
HDFS-7186. Document the "hadoop trace" command. (Masatake Iwasaki via Colin
|
HDFS-7186. Document the "hadoop trace" command. (Masatake Iwasaki via Colin
|
||||||
P. McCabe)
|
P. McCabe)
|
||||||
|
|
||||||
|
Improve error message in Shell#runCommand on OutOfMemoryError.
|
||||||
|
(Yongjun Zhang via wang)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -519,7 +519,13 @@ abstract public class Shell {
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
errThread.start();
|
errThread.start();
|
||||||
} catch (IllegalStateException ise) { }
|
} catch (IllegalStateException ise) {
|
||||||
|
} catch (OutOfMemoryError oe) {
|
||||||
|
LOG.error("Caught " + oe + ". One possible reason is that ulimit"
|
||||||
|
+ " setting of 'max user processes' is too low. If so, do"
|
||||||
|
+ " 'ulimit -u <largerNum>' and try again.");
|
||||||
|
throw oe;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
parseExecResult(inReader); // parse the output
|
parseExecResult(inReader); // parse the output
|
||||||
// clear the input stream buffer
|
// clear the input stream buffer
|
||||||
|
|
Loading…
Reference in New Issue