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.

Facing Kerbros' Authentication error while accessing hive table

Highlighted

Facing Kerbros' Authentication error while accessing hive table

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 @\<>@AETH.<>.COM (auth:KERBEROS) is not authorized for protocol interface org.apache.hadoop.hdfs.protocol.ClientProtocol: denied by configured ACL

 

 

Please suggest 

 

 

 

5 REPLIES 5

Re: Facing Kerbros' Authentication error while accessing hive table

New Contributor

Also my kerbros token is active 

Re: Facing Kerbros' Authentication error while accessing hive table

Cloudera Employee

Hey, 

 

Can you share the configuration value for "hadoop_authorized_users"?

 

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

Re: Facing Kerbros' Authentication error while accessing hive table

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!

 

 

 

 

 

Re: Facing Kerbros' Authentication error while accessing hive table

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.

Re: Facing Kerbros' Authentication error while accessing hive table

Mentor

@Atena-Dev-Team 

 

Any updates on this thread

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