HADOOP-12271. Hadoop Jar Error Should Be More Explanatory. Contributed by Josh Elser.

(cherry picked from commit 2087eaf684)
This commit is contained in:
Harsh J 2015-07-31 10:12:32 +05:30
parent 212b8b919d
commit 68034bd6c2
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,9 @@ Release 2.8.0 - UNRELEASED
IMPROVEMENTS IMPROVEMENTS
HADOOP-12271. Hadoop Jar Error Should Be More Explanatory
(Josh Elser via harsh)
HADOOP-6842. "hadoop fs -text" does not give a useful text representation HADOOP-6842. "hadoop fs -text" does not give a useful text representation
of MapWritable objects (Akira Ajisaka via bobby) of MapWritable objects (Akira Ajisaka via bobby)

View File

@ -148,7 +148,8 @@ public class RunJar {
String fileName = args[firstArg++]; String fileName = args[firstArg++];
File file = new File(fileName); File file = new File(fileName);
if (!file.exists() || !file.isFile()) { if (!file.exists() || !file.isFile()) {
System.err.println("Not a valid JAR: " + file.getCanonicalPath()); System.err.println("JAR does not exist or is not a normal file: " +
file.getCanonicalPath());
System.exit(-1); System.exit(-1);
} }
String mainClassName = null; String mainClassName = null;