Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-1498

Usage info is not printed when wrong number of arguments is provided for JoinExample

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • 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)
      

      Attachments

        1. Tez-1498.patch
          0.6 kB
          Jeff Zhang

        Activity

          People

            zjffdu Jeff Zhang
            zjffdu Jeff Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: