HADOOP-12271. Hadoop Jar Error Should Be More Explanatory. Contributed by Josh Elser.
This commit is contained in:
parent
c5caa25b8f
commit
2087eaf684
@ -536,6 +536,9 @@ Release 2.8.0 - UNRELEASED
|
||||
|
||||
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
|
||||
of MapWritable objects (Akira Ajisaka via bobby)
|
||||
|
||||
|
@ -148,7 +148,8 @@ public void run(String[] args) throws Throwable {
|
||||
String fileName = args[firstArg++];
|
||||
File file = new File(fileName);
|
||||
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);
|
||||
}
|
||||
String mainClassName = null;
|
||||
|
Loading…
Reference in New Issue
Block a user