hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r929712 - in /hadoop/mapreduce/trunk: CHANGES.txt src/test/mapred/org/apache/hadoop/cli/testMRConf.xml src/tools/org/apache/hadoop/tools/HadoopArchives.java
Date Wed, 31 Mar 2010 20:42:57 GMT
Author: szetszwo
Date: Wed Mar 31 20:42:56 2010
New Revision: 929712

URL: http://svn.apache.org/viewvc?rev=929712&view=rev
Log:
MAPREDUCE-1602. Fix the error message for the case that src does not exist.

Modified:
    hadoop/mapreduce/trunk/CHANGES.txt
    hadoop/mapreduce/trunk/src/test/mapred/org/apache/hadoop/cli/testMRConf.xml
    hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/tools/HadoopArchives.java

Modified: hadoop/mapreduce/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=929712&r1=929711&r2=929712&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/CHANGES.txt (original)
+++ hadoop/mapreduce/trunk/CHANGES.txt Wed Mar 31 20:42:56 2010
@@ -498,7 +498,10 @@ Trunk (unreleased changes)
     MAPREDUCE-1348. Fix block forensics packaging. (Tom White via cdouglas)
 
     MAPREDUCE-1628. HarFileSystem shows incorrect replication numbers and
-    permissions (tsz via mahadev)
+    permissions.  (szetszwo via mahadev)
+
+    MAPREDUCE-1602. Fix the error message for the case that src does not
+    exist.  (szetszwo)
 
 Release 0.21.0 - Unreleased
 

Modified: hadoop/mapreduce/trunk/src/test/mapred/org/apache/hadoop/cli/testMRConf.xml
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/test/mapred/org/apache/hadoop/cli/testMRConf.xml?rev=929712&r1=929711&r2=929712&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/test/mapred/org/apache/hadoop/cli/testMRConf.xml (original)
+++ hadoop/mapreduce/trunk/src/test/mapred/org/apache/hadoop/cli/testMRConf.xml Wed Mar 31
20:42:56 2010
@@ -104,7 +104,7 @@
       <comparators>
         <comparator>
           <type>SubstringComparator</type>
-          <expected-output>Index: 0, Size: 0</expected-output>
+          <expected-output>The resolved paths is empty.</expected-output>
         </comparator>
       </comparators>
     </test>
@@ -407,7 +407,7 @@
       <comparators>
         <comparator>
           <type>SubstringComparator</type>
-          <expected-output>Index: 0, Size: 0</expected-output>
+          <expected-output>The resolved paths is empty.</expected-output>
          </comparator>
        </comparators>
     </test>

Modified: hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/tools/HadoopArchives.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/tools/HadoopArchives.java?rev=929712&r1=929711&r2=929712&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/tools/HadoopArchives.java (original)
+++ hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/tools/HadoopArchives.java Wed Mar 31
20:42:56 2010
@@ -867,6 +867,11 @@ public class HadoopArchives implements T
           }
         }
       }
+      if (globPaths.isEmpty()) {
+        throw new IOException("The resolved paths is empty."
+            + "  Please check whether the srcPaths exist, where srcPaths = "
+            + srcPaths);
+      }
 
       //process space replacement configuration
       if (conf.getBoolean(SPACE_REPLACE_LABEL, SPACE_REPLACE_DEFAULT)) {



Mime
View raw message