hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zjs...@apache.org
Subject [23/38] hadoop git commit: HADOOP-12271. Hadoop Jar Error Should Be More Explanatory. Contributed by Josh Elser.
Date Tue, 04 Aug 2015 00:13:04 GMT
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/743fdb20
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/743fdb20
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/743fdb20

Branch: refs/heads/YARN-2928
Commit: 743fdb20784e98c2873fcc848c52170e076a5ca2
Parents: ff03b9c
Author: Harsh J <harsh@cloudera.com>
Authored: Fri Jul 31 10:12:32 2015 +0530
Committer: Zhijie Shen <zjshen@apache.org>
Committed: Mon Aug 3 17:02:11 2015 -0700

----------------------------------------------------------------------
 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/743fdb20/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/743fdb20/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