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

Beeline throws NPE when beeline.hiveconfvariables={} in beeline.properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • Beeline
    • None

    Description

      Env: hive master
      Steps to reproduce:

      1. clear previous beeline.properties (rm -rf ~/.beeline/beeline.properties)

      2. Launch beeline, "!save" and exit. This would create new "~/.beeline/beeline.properties", which would have "beeline.hiveconfvariables={}"

      3. Launch "beeline --hiveconf hive.tmp.dir=/tmp". This would throw NPE

      Exception in thread "main" java.lang.NullPointerException
              at org.apache.hive.beeline.BeeLine.setHiveConfVar(BeeLine.java:885)
              at org.apache.hive.beeline.BeeLine.connectUsingArgs(BeeLine.java:832)
              at org.apache.hive.beeline.BeeLine.initArgs(BeeLine.java:775)
              at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:1009)
              at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:519)
              at org.apache.hive.beeline.BeeLine.main(BeeLine.java:501)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
      

      Attachments

        1. HIVE-16116.1.patch
          2 kB
          Rajesh Balamohan
        2. HIVE-16116.2.patch
          3 kB
          Rajesh Balamohan

        Activity

          People

            rajesh.balamohan Rajesh Balamohan
            rajesh.balamohan Rajesh Balamohan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: