You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aw...@apache.org on 2015/07/31 23:53:42 UTC

[02/10] hadoop git commit: HADOOP-12271. Hadoop Jar Error Should Be More Explanatory. Contributed by Josh Elser.

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


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2087eaf6
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2087eaf6
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2087eaf6

Branch: refs/heads/HADOOP-12111
Commit: 2087eaf684d9fb14b5390e21bf17e93ac8fea7f8
Parents: c5caa25
Author: Harsh J <ha...@cloudera.com>
Authored: Fri Jul 31 10:12:32 2015 +0530
Committer: Harsh J <ha...@cloudera.com>
Committed: Fri Jul 31 10:12:32 2015 +0530

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt                   | 3 +++
 .../src/main/java/org/apache/hadoop/util/RunJar.java              | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/2087eaf6/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 098194c..3c7e5c3 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -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)
 

http://git-wip-us.apache.org/repos/asf/hadoop/blob/2087eaf6/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
index 4b26b76..ccb114b 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
@@ -148,7 +148,8 @@ public class RunJar {
     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;