Hive
  1. Hive
  2. HIVE-6685

Beeline throws ArrayIndexOutOfBoundsException for mismatched arguments

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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)
      
      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

          Szehon Ho created issue -
          Szehon Ho made changes -
          Field Original Value New Value
          Summary Beeline throws ArrayIndexOutOfBoundsException Beeline throws ArrayIndexOutOfBoundsException for mismatched arguments
          Szehon Ho made changes -
          Attachment HIVE-6685.patch [ 12635162 ]
          Szehon Ho made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Szehon Ho made changes -
          Remote Link This issue links to "review board (Web Link)" [ 14595 ]
          Szehon Ho made changes -
          Attachment HIVE-6685.2.patch [ 12635452 ]
          Szehon Ho made changes -
          Attachment HIVE-6685.3.patch [ 12636986 ]
          Szehon Ho made changes -
          Attachment HIVE-6685.4.patch [ 12636996 ]
          Xuefu Zhang made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development