You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by 李滔 <ta...@foxmail.com> on 2015/07/02 14:44:57 UTC

hiveserver2 HadoopShims.isSecurityEnabled() error

Hi everyone,


I'm new to Hive. I just want to start hiveserver2 service on my desktop. However when I run "hive --service hiveserver2 " command, which triggers the following exception:
2015-07-02 20:33:23,159 - WARN  [main:HiveConf@2605] - HiveConf of name hive.optimize.mapjoin.mapreduce does not exist
2015-07-02 20:33:23,161 - WARN  [main:HiveConf@2605] - HiveConf of name hive.semantic.analyzer.factory.impl does not exist
2015-07-02 20:33:23,161 - WARN  [main:HiveConf@2605] - HiveConf of name hive.auto.convert.sortmerge.join.noconditionaltask does not ex
2015-07-02 20:33:23,254 - WARN  [main:HiveServer2@112] - Error starting HiveServer2 on attempt 1, will retry in 60 seconds
java.lang.NoSuchMethodError: org.apache.hadoop.hive.shims.HadoopShims.isSecurityEnabled()Z
        at org.apache.hive.service.cli.CLIService.init(CLIService.java:81)
        at org.apache.hive.service.CompositeService.init(CompositeService.java:59)
        at org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:68)
        at org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:100)
        at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:149)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
2015-07-02 20:33:23,257 - INFO  [main:HiveServer2@120] - Exception caught when c
java.lang.NullPointerException
        at org.apache.hive.service.server.HiveServer2.stop(HiveServer2.java:82)
        at org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServe
        at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:149)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
The hive version is 0.13.1. And I checked the hive/lib directory where the following jar files exist:

-rwxr-xr-x 1 root root  7631 Jan 30 16:31 lib/hive-shims-0.13.1.2.1.10.0-881.jar
-rwxr-xr-x 1 root root 44077 Jan 30 16:30 lib/hive-shims-common-0.13.1.2.1.10.0-881.jar
lrwxrwxrwx 1 root root    41 Jun 17 14:57 lib/hive-shims-common.jar -> hive-shims-common-0.13.1.2.1.10.0-881.jar
-rwxr-xr-x 1 root root 74868 Jan 30 16:30 lib/hive-shims-common-secure-0.13.1.2.1.10.0-881.jar
lrwxrwxrwx 1 root root    48 Jun 17 14:57 lib/hive-shims-common-secure.jar -> hive-shims-common-secure-0.13.1.2.1.10.0-881.


Does anyone can help me with above problem? Thanks in advance!


Tao