hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Na Yang (JIRA)" <>
Subject [jira] [Commented] (HIVE-9566) HiveServer2 fails to start with NullPointerException
Date Mon, 09 Feb 2015 17:10:35 GMT


Na Yang commented on HIVE-9566:

Hi [~xuefuz], this NullPointerException does not happen all the time. It happens when there
are some other issues which cause the start HiveServer2 fails, then in the startHiveServer2
API, it will try starting HiveServer2 again. Before the second try, it calls server.stop()
to stop the current HiveServer2 instance. The NullPointerException happens in the server.stop()

In my case, the Derby db lock causes the failure of starting HiveServer2, then this NullPointerException
happens. This NullPointerException is misleading and covered the real cause of the HiveServer2
start failure. 


> HiveServer2 fails to start with NullPointerException
> ----------------------------------------------------
>                 Key: HIVE-9566
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 0.13.0, 0.14.0, 0.13.1
>            Reporter: Na Yang
>            Assignee: Na Yang
>         Attachments: HIVE-9566-branch-0.13.patch, HIVE-9566-branch-0.14.patch, HIVE-9566-trunk.patch
> 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
> {noformat}
> java.lang.NullPointerException
>         at org.apache.hive.service.server.HiveServer2.stop(
>         at org.apache.hive.service.server.HiveServer2.startHiveServer2(
>         at org.apache.hive.service.server.HiveServer2.main(
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at org.apache.hadoop.util.RunJar.main( 
> {noformat}

This message was sent by Atlassian JIRA

View raw message