Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
If no arguments is provided, it should print the usage info rather than throw exception as following
14/08/26 12:36:23 INFO examples.JoinExample: Running JoinExample java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.tez.examples.JoinExample.execute(JoinExample.java:165) at org.apache.tez.examples.JoinExample.execute(JoinExample.java:138) at org.apache.tez.examples.JoinExample.run(JoinExample.java:112) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at org.apache.tez.examples.JoinExample.main(JoinExample.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72) at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:145) at org.apache.tez.examples.ExampleDriver.main(ExampleDriver.java:59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.main(RunJar.java:212)