Support Questions

Find answers, ask questions, and share your expertise

What's causing ClassNotFound: RangerHiveAuthorizerFactory?

avatar
Rising Star

We just installed ranger and turned on hdfs and hive plugin. However, hiveserver2 keeps giving out a Classnotfound exception saying that org.apache.ranger.authorization.hive.authorizer.rangerhiveauthorizerfactory could not be found.

This is using HDP v 2.3.4.7 (kerberized)

Ranger: 0.5.0.2.3

Any ideas?

1 ACCEPTED SOLUTION

avatar
Super Guru

Looks like ranger plugin jar is not present under HS2 lib directory, can you please cross check before jar exist under /usr/hdp/current/hive-server2/lib/?

ranger-hive-plugins-<version>.jar

View solution in original post

4 REPLIES 4

avatar
Super Guru

Looks like ranger plugin jar is not present under HS2 lib directory, can you please cross check before jar exist under /usr/hdp/current/hive-server2/lib/?

ranger-hive-plugins-<version>.jar

avatar
Rising Star

@Jitendra Yadav it's under /usr/hdp/2.3.4.7/ranger-hive-plugin/lib/ranger-hive-plugin/ranger-hive-plugin-....

Seems like it exists....

avatar
Super Guru

As mentioned in my previous comment, can you please check inside /usr/hdp/current/hive-server2/lib/ directory? If its not there then try to copy all the ranger plugin jars from /usr/hdp/2.3.4.7/ranger-hive-plugin/lib/ to /usr/hdp/current/hive-server2/lib/ and restart the hiveserver2.

avatar
Rising Star

Oh, sorry misread the path... it works. much appreciated!