You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2015/06/01 03:43:43 UTC

svn commit: r1682811 - in /hama/trunk/examples/src/main/java/org/apache/hama/examples: PageRank.java util/FastGraphGen.java

Author: edwardyoon
Date: Mon Jun  1 01:43:43 2015
New Revision: 1682811

URL: http://svn.apache.org/r1682811
Log:
FastGen need to print usage if no arguments.

Modified:
    hama/trunk/examples/src/main/java/org/apache/hama/examples/PageRank.java
    hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java

Modified: hama/trunk/examples/src/main/java/org/apache/hama/examples/PageRank.java
URL: http://svn.apache.org/viewvc/hama/trunk/examples/src/main/java/org/apache/hama/examples/PageRank.java?rev=1682811&r1=1682810&r2=1682811&view=diff
==============================================================================
--- hama/trunk/examples/src/main/java/org/apache/hama/examples/PageRank.java (original)
+++ hama/trunk/examples/src/main/java/org/apache/hama/examples/PageRank.java Mon Jun  1 01:43:43 2015
@@ -206,7 +206,7 @@ public class PageRank {
         + "Default value - Text");
 
     if (args.length < 2) {
-      new HelpFormatter().printHelp("PageRank -i INPUT_PATH -o OUTPUT_PATH "
+      new HelpFormatter().printHelp("pagerank -i INPUT_PATH -o OUTPUT_PATH "
           + "[-t NUM_TASKS] [-f FILE_TYPE]", opts);
       System.exit(-1);
     }

Modified: hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java
URL: http://svn.apache.org/viewvc/hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java?rev=1682811&r1=1682810&r2=1682811&view=diff
==============================================================================
--- hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java (original)
+++ hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java Mon Jun  1 01:43:43 2015
@@ -145,7 +145,7 @@ public class FastGraphGen {
     boolean outputType = false;
 
     if (args.length == 0) {
-      System.out.println("No args specified for FastGraphGen to initialize");
+      new HelpFormatter().printHelp("gen -p OUTPUT_PATH [options]", opts);
       System.exit(-1);
     }