gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject svn commit: r1373394 - in /gora/trunk: CHANGES.txt gora-tutorial/src/main/java/org/apache/gora/tutorial/log/LogAnalytics.java
Date Wed, 15 Aug 2012 13:27:45 GMT
Author: lewismc
Date: Wed Aug 15 13:27:44 2012
New Revision: 1373394

URL: http://svn.apache.org/viewvc?rev=1373394&view=rev
Log:
GORA-85 Implement Usage messages for SpecificCompiler and LogAnalytics

Modified:
    gora/trunk/CHANGES.txt
    gora/trunk/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/LogAnalytics.java

Modified: gora/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/gora/trunk/CHANGES.txt?rev=1373394&r1=1373393&r2=1373394&view=diff
==============================================================================
--- gora/trunk/CHANGES.txt (original)
+++ gora/trunk/CHANGES.txt Wed Aug 15 13:27:44 2012
@@ -6,6 +6,8 @@ Gora Change Log
 
 trunk (current development)
 
+* GORA-85 Implement "Usage" messages for SpecificCompiler and LogAnalytics (lewismc)
+
 * GORA-164 Use <type> instead of <classifier> configuration for test dependencies
(lewismc)
 
 * GORA-XX ensure directory cleanup succeeds in gora-* (Simone Tripodi via lewismc)

Modified: gora/trunk/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/LogAnalytics.java
URL: http://svn.apache.org/viewvc/gora/trunk/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/LogAnalytics.java?rev=1373394&r1=1373393&r2=1373394&view=diff
==============================================================================
--- gora/trunk/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/LogAnalytics.java
(original)
+++ gora/trunk/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/LogAnalytics.java
Wed Aug 15 13:27:44 2012
@@ -189,7 +189,13 @@ public class LogAnalytics extends Config
     return success ? 0 : 1;
   }
   
+  private static final String USAGE = "LogAnalytics <input_data_store> <output_data_store>";
+  
   public static void main(String[] args) throws Exception {
+    if(args.length < 2) {
+      System.err.println(USAGE);
+      System.exit(1);
+    }
     //run as any other MR job
     int ret = ToolRunner.run(new LogAnalytics(), args);
     System.exit(ret);



Mime
View raw message