Actually the problem was that I was using hive 3 whereas the ranger pom contained hive version 2.3.2(I compiled against the same). And hive 2 did not have the method getHivePolicyProvider().
On Tue, Jan 22, 2019 at 2:02 PM Shubham Chaurasia <shubh.chaura...@gmail.com> wrote: > Hi, > > Any idea about this? > > 2019-01-22T02:51:30,082 WARN [main] server.HiveServer2: Error starting > HiveServer2 on attempt 4, will retry in 60000ms > java.lang.AbstractMethodError: > org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.getHivePolicyProvider()Lorg/apache/hadoop/hive/ql/security/authorization/plugin/HivePolicyProvider; > at > org.apache.hive.service.server.HiveServer2.startPrivilegeSynchronizer(HiveServer2.java:1009) > ~[hive-service-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT] > at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:729) > ~[hive-service-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT] > at > org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:1073) > [hive-service-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT] > at > org.apache.hive.service.server.HiveServer2.access$1700(HiveServer2.java:135) > [hive-service-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT] > at > org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:1341) > [hive-service-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT] > at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:1185) > [hive-service-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[?:1.8.0_112] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > ~[?:1.8.0_112] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:1.8.0_112] > at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] > at org.apache.hadoop.util.RunJar.run(RunJar.java:239) > [hadoop-common-3.0.0.3.0.0.0-698.jar:?] > at org.apache.hadoop.util.RunJar.main(RunJar.java:153) > [hadoop-common-3.0.0.3.0.0.0-698.jar:?] > > I am using following versions: > > Ranger: 1.2.0 > Hive: 3.1.0-SNAPSHOT > > Thanks, > Shubham > > > >