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
Can you share the configuration value for "hadoop_authorized_users"?
Is it left to the default value, or was there any modification?
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
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
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.