hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r808650 - /hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapred/pipes/Submitter.java
Date Thu, 27 Aug 2009 21:46:30 GMT
Author: omalley
Date: Thu Aug 27 21:46:30 2009
New Revision: 808650

URL: http://svn.apache.org/viewvc?rev=808650&view=rev
Log:
MAPREDUCE-421 Pipes need to set the exit return code when something goes wrong.
(Christian Kunz via omalley)

Modified:
    hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapred/pipes/Submitter.java

Modified: hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapred/pipes/Submitter.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapred/pipes/Submitter.java?rev=808650&r1=808649&r2=808650&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapred/pipes/Submitter.java (original)
+++ hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapred/pipes/Submitter.java Thu Aug
27 21:46:30 2009
@@ -502,7 +502,8 @@
    * @param args
    */
   public static void main(String[] args) throws Exception {
-    new Submitter().run(args);
+    int exitCode =  new Submitter().run(args);
+    System.exit(exitCode);
   }
 
 }



Mime
View raw message