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

Fix the Beeline set and save command in order to avoid the NullPointerException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Beeline
    • Labels:
      None

      Description

      When I run set and save command at Beeline in my environment. And NullPointerException occurred as follows.

      [root@hive ~]# /usr/local/hive/bin/beeline
      Beeline version 2.0.0-SNAPSHOT by Apache Hive
      beeline> !set
      java.lang.NullPointerException
      beeline> !save
      Saving preferences to: /root/.beeline/beeline.properties
      java.lang.NullPointerException
      

      This problem has occurred because the following method's return value in BeeLineOpts#toProperties is null.

      beeLine.getReflector().invoke(this, "get" + names[i], new Object[0]).toString()
      

      Therefore it is modified so as to avoid NullPointerException.

        Attachments

        1. HIVE-11135.1.patch
          0.8 kB
          Shinichi Yamashita

          Activity

            People

            • Assignee:
              sinchii Shinichi Yamashita
              Reporter:
              sinchii Shinichi Yamashita
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: