hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject hadoop git commit: HADOOP-12271. Hadoop Jar Error Should Be More Explanatory. Contributed by Josh Elser.
Date Fri, 31 Jul 2015 04:43:28 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 212b8b919 -> 68034bd6c


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

(cherry picked from commit 2087eaf684d9fb14b5390e21bf17e93ac8fea7f8)


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

Branch: refs/heads/branch-2
Commit: 68034bd6c2b3f048c12eacc7d3922ce36f071d23
Parents: 212b8b9
Author: Harsh J <harsh@cloudera.com>
Authored: Fri Jul 31 10:12:32 2015 +0530
Committer: Harsh J <harsh@cloudera.com>
Committed: Fri Jul 31 10:13:07 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/68034bd6/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 d329319..e383de3 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -30,6 +30,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/68034bd6/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;


Mime
View raw message