Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

can't start hiveserver2 after ranger0.6 hive plugin installed

can't start hiveserver2 after ranger0.6 hive plugin installed

New Contributor


when i try to start hiveserver2 after using ranger-0.6.0-SNAPSHOT-hive-plugin, When I searched Hiveserver2 logs, I found the below log:

ERROR [main]: service.CompositeService ( - Error star ting services HiveServer2 java.lang.AbstractMethodError: org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.filterLis tCmdObjects(Ljava/util/List;Lorg/apache/hadoop/hive/ql/security/authorization/plugin/HiveAuthzContext;)Ljava/ util/List; at edObjects( at abases( at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getDatabases( at org.apache.hive.service.cli.CLIService.start( at org.apache.hive.service.CompositeService.start( at org.apache.hive.service.server.HiveServer2.start( at org.apache.hive.service.server.HiveServer2.startHiveServer2( at org.apache.hive.service.server.HiveServer2.access$700( at org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute( 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 at org.apache.hadoop.util.RunJar.main(

2016-06-06 00:48:47,379 INFO [main]: service.AbstractService ( - Service:Oper ationManager is stopped. 2016-06-06 00:48:47,379 INFO [main]: service.AbstractService ( - Service:Sess ionManager is stopped. 2016-06-06 00:48:57,381 INFO [main]: service.AbstractService ( - Service:CLIS ervice is stopped. 2016-06-06 00:48:57,382 INFO [main]: server.HiveServer2 ( - Shutting down HiveSer ver2 2016-06-06 00:48:57,382 WARN [main]: server.HiveServer2 ( - Error sta rting HiveServer2 on attempt 1, will retry in 60 seconds

With the using of ranger-0.6.0-SNAPSHOT-hive-plugin, the error occured everytime when hiveserver2 start, when I use the ranger-admin to add new policy, the policy can't work, and after a few minutes, the hiveserver2 shutdown after 30 times try.

My ranger-0.6.0-SNAPSHOT-hive-plugin intall.properites document are setup as below:




XAAUDIT.SOLR.ENABLE=true XAAUDIT.SOLR.URL=http://localhost:6083/solr/ranger_audits




Re: can't start hiveserver2 after ranger0.6 hive plugin installed

New Contributor

I have tried to reset my cluster, but in a new hadoop cluster, the old error still happen, I hope get help here , thanks


Re: can't start hiveserver2 after ranger0.6 hive plugin installed

New Contributor

The reason is the filterListCmdObjects in hive is

List<HivePrivilegeObject> filterListCmdObjects(List<HivePrivilegeObject> listObjs,HiveAuthzContext context)

but in ranger 0.6 is

public List<HivePrivilegeObject> filterListCmdObjects(List<HivePrivilegeObject> objs,QueryContext              context)
Don't have an account?
Coming from Hortonworks? Activate your account here