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

What's causing ClassNotFound: RangerHiveAuthorizerFactory?

Solved Go to solution
Highlighted

What's causing ClassNotFound: RangerHiveAuthorizerFactory?

Contributor

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

Accepted Solutions

Re: What's causing ClassNotFound: RangerHiveAuthorizerFactory?

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

Re: What's causing ClassNotFound: RangerHiveAuthorizerFactory?

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

Highlighted

Re: What's causing ClassNotFound: RangerHiveAuthorizerFactory?

Contributor

@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....

Highlighted

Re: What's causing ClassNotFound: RangerHiveAuthorizerFactory?

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.

Highlighted

Re: What's causing ClassNotFound: RangerHiveAuthorizerFactory?

Contributor

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

Don't have an account?
Coming from Hortonworks? Activate your account here