Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-6685

Beeline throws ArrayIndexOutOfBoundsException for mismatched arguments

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
      None

      Description

      Noticed that there is an ugly ArrayIndexOutOfBoundsException for mismatched arguments in beeline prompt. It would be nice to cleanup.

      Example:

      beeline -u szehon -p
      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
      	at org.apache.hive.beeline.BeeLine.initArgs(BeeLine.java:560)
      	at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:628)
      	at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:366)
      	at org.apache.hive.beeline.BeeLine.main(BeeLine.java:349)
      	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. HIVE-6685.patch
          2 kB
          Szehon Ho
        2. HIVE-6685.4.patch
          13 kB
          Szehon Ho
        3. HIVE-6685.3.patch
          13 kB
          Szehon Ho
        4. HIVE-6685.2.patch
          14 kB
          Szehon Ho

          Issue Links

            Activity

              People

              • Assignee:
                szehon Szehon Ho
                Reporter:
                szehon Szehon Ho
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: