Browse Source

HADOOP-4608. Don't print a stack trace when the example driver gets an
unknown program to run. (Edward Yoon via omalley)


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@713847 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 16 years ago
parent
commit
2cd44d588b
2 changed files with 15 additions and 13 deletions
  1. 13 9
      CHANGES.txt
  2. 2 4
      src/core/org/apache/hadoop/util/ProgramDriver.java

+ 13 - 9
CHANGES.txt

@@ -16,10 +16,10 @@ Trunk (unreleased changes)
     (Suresh Srinivas via johan)
 
     HADOOP-4618. Move http server from FSNamesystem into NameNode.
-      FSNamesystem.getNameNodeInfoPort() is removed.
-      FSNamesystem.getDFSNameNodeMachine() and FSNamesystem.getDFSNameNodePort()
-        replaced by FSNamesystem.getDFSNameNodeAddress().
-      NameNode(bindAddress, conf) is removed.
+    FSNamesystem.getNameNodeInfoPort() is removed.
+    FSNamesystem.getDFSNameNodeMachine() and FSNamesystem.getDFSNameNodePort()
+      replaced by FSNamesystem.getDFSNameNodeAddress().
+    NameNode(bindAddress, conf) is removed.
     (shv)
 
     HADOOP-4567. GetFileBlockLocations returns the NetworkTopology
@@ -74,13 +74,14 @@ Trunk (unreleased changes)
 
     HADOOP-3461. Remove hdfs.StringBytesWritable. (szetszwo)
 
-    HADOOP-4437. Use Halton sequence instead of java.util.Random in PiEstimator.
-    (szetszwo)
+    HADOOP-4437. Use Halton sequence instead of java.util.Random in 
+    PiEstimator. (szetszwo)
 
-    HADOOP-4572. Change INode and its sub-classes to package private. (szetszwo)
+    HADOOP-4572. Change INode and its sub-classes to package private. 
+    (szetszwo)
 
-    HADOOP-4187. Does a runtime lookup for JobConf/JobConfigurable, and if found,
-    invokes the appropriate configure method. (Sharad Agarwal via ddas)
+    HADOOP-4187. Does a runtime lookup for JobConf/JobConfigurable, and if 
+    found, invokes the appropriate configure method. (Sharad Agarwal via ddas)
 
     HADOOP-4453. Improve ssl configuration and handling in HsftpFileSystem,
     particularly when used with DistCp. (Kan Zhang via cdouglas)
@@ -96,6 +97,9 @@ Trunk (unreleased changes)
     HADOOP-4505. Add a unit test to test faulty setup task and cleanup
     task killing the job. (Amareshwari Sriramadasu via johan)
 
+    HADOOP-4608. Don't print a stack trace when the example driver gets an
+    unknown program to run. (Edward Yoon via omalley)
+
   OPTIMIZATIONS
 
   BUG FIXES

+ 2 - 4
src/core/org/apache/hadoop/util/ProgramDriver.java

@@ -120,8 +120,7 @@ public class ProgramDriver {
       System.out.println("An example program must be given as the" + 
                          " first argument.");
       printUsage(programs);
-      throw new IllegalArgumentException("An example program must be given " +
-      		                               "as the first argument.");
+      System.exit(-1);
     }
 	
     // And that it is good.
@@ -129,8 +128,7 @@ public class ProgramDriver {
     if (pgm == null) {
       System.out.println("Unknown program '" + args[0] + "' chosen.");
       printUsage(programs);
-      throw new IllegalArgumentException("Unknown program '" + args[0] + 
-                                         "' chosen.");
+      System.exit(-1);
     }
 	
     // Remove the leading argument and call main