tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hit...@apache.org
Subject git commit: TEZ-1498. Usage info is not printed when wrong number of arguments is provided for JoinExample. (Jeff Zhang via hitesh)
Date Tue, 26 Aug 2014 17:52:06 GMT
Repository: tez
Updated Branches:
  refs/heads/master fc86dbf0a -> 1bef46e76


TEZ-1498. Usage info is not printed when wrong number of arguments is provided for JoinExample.
(Jeff Zhang via hitesh)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/1bef46e7
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/1bef46e7
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/1bef46e7

Branch: refs/heads/master
Commit: 1bef46e76e43291a52b4b4a39cd6f4d371f1bc23
Parents: fc86dbf
Author: Hitesh Shah <hitesh@apache.org>
Authored: Tue Aug 26 10:51:41 2014 -0700
Committer: Hitesh Shah <hitesh@apache.org>
Committed: Tue Aug 26 10:51:41 2014 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/tez/examples/JoinExample.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/1bef46e7/tez-examples/src/main/java/org/apache/tez/examples/JoinExample.java
----------------------------------------------------------------------
diff --git a/tez-examples/src/main/java/org/apache/tez/examples/JoinExample.java b/tez-examples/src/main/java/org/apache/tez/examples/JoinExample.java
index 083cc4b..20224fa 100644
--- a/tez-examples/src/main/java/org/apache/tez/examples/JoinExample.java
+++ b/tez-examples/src/main/java/org/apache/tez/examples/JoinExample.java
@@ -123,7 +123,7 @@ public class JoinExample extends Configured implements Tool {
   }
   
   private int validateArgs(String[] otherArgs) {
-    if (otherArgs.length > 5) {
+    if (!(otherArgs.length == 4 || otherArgs.length == 5)) {
       printUsage();
       return 2;
     }


Mime
View raw message