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

HiveServer2 fails to start with NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0, 0.13.1, 0.14.0
    • 1.3.0, 2.0.0
    • HiveServer2
    • None

    Description

      hiveserver2 uses embedded metastore with default hive-site.xml configuration.

      I use "hive --stop --service hiveserver2" command to stop the running hiveserver2 process and then use "hive --start --service hiveserver2" command to start the hiveserver2 service. I see the following exception in the hive.log file

      java.lang.NullPointerException
              at org.apache.hive.service.server.HiveServer2.stop(HiveServer2.java:104)
              at org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:138)
              at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:171)
              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-9566.patch
          2 kB
          Xuefu Zhang
        2. HIVE-9566-branch-0.13.patch
          0.8 kB
          Na Yang
        3. HIVE-9566-trunk.patch
          2 kB
          Na Yang
        4. HIVE-9566-branch-0.14.patch
          1 kB
          Na Yang

        Issue Links

          Activity

            People

              nyang Na Yang
              nyang Na Yang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: