Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Facing Kerbros' Authentication error while accessing hive table

avatar
New Contributor

Facing Kerbros' Authentication error while accessing hive table

 

Error Shared :

 

py4j.protocol.Py4JJavaError: An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext.
: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User @\<>@DOMAIN.<>.COM (auth:KERBEROS) is not authorized for protocol interface org.apache.hadoop.hdfs.protocol.ClientProtocol: denied by configured ACL

 

 

Please suggest 

 

 

 

5 REPLIES 5

avatar
New Contributor

Also my kerbros token is active 

avatar
Rising Star

Hey, 

 

Can you share the configuration value for "hadoop_authorized_users"?

 

Is it left to the default value, or was there any modification?

avatar
Master Mentor

@Atena-Dev-Team 

For sure when you kerberize your cluster your are hardening security access to all components Hive,hbase, Kafka etc .

The problem you are encountering is related to Ranger because security has been toggled to Ranger after Kerberization,can you check your hive config like below show my hive authorization is now delegated to Ranger
Ranger_HIve.PNG

So will need to use Ranger to give access to hive databases and tables 

Can you check whether the hive plugin has been enabled? If thats the case then your authorization will have to be through Ranger
Ranger_HIve2.PNG

 

Happy hadooping!

 

 

 

 

 

avatar
Expert Contributor

Hi @Atena-Dev-Team,

 

It seems you are trying to connect to Hive using either spark-sql or Spark Thriftserver.

 

Can you please avoid involving spark and confirm if you are facing the issue via hive.

Try accessing the table via Hive CLI or beeline when connected to Hiveserver2.

avatar
Master Mentor

@Atena-Dev-Team 

 

Any updates on this thread