org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS]

182
June 12, 2022, at 02:10 AM

I am trying to execute the hive table query in presto using Kerberos authentication, But it failed

Caused by: com.facebook.presto.spi.PrestoException: Error opening Hive split hdfs://ip-10-13-9-237.xxxx.com:8020/user/hive/warehouse/extended_test_db_hive2.db/table_with_all_data_types/000000_0_copy_2 (offset=0, length=124) using org.apache.hadoop.mapred.TextInputFormat: org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS]

Anyone please help

Answer 1

This error message tells me that you aren't actually using the correct authentication mechanism. You presented [nothing] or [user/name password] and it's expecting [Kerberos] or [token]. You likely need to use a different connection string to make sure you connect via kerberos.

Usually you have to change your connection to something like:

jdbc:hive2://[my_hive_server]:[port]/[database];principal=myPrincipel@EXAMPLE.COM

or adjust your jaas config to something like:

com.sun.security.jgss.initiate {
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache=false
doNotPrompt=true
useKeyTab=true
keyTab="<QuerySurge Install Dir>/QuerySurge/agent/mykeytab.keytab"
principal="myPrincipel@EXAMPLE.COM"
};
Rent Charter Buses Company
READ ALSO
Spring boot gradle build failing due to exception &quot;HikariPool$PoolInitializationException&quot; in unit test

Spring boot gradle build failing due to exception "HikariPool$PoolInitializationException" in unit test

Test cases are running fine when we run them individually it only gives this exception when we are trying to create a build

107
How is XOR helping find the unique value?

How is XOR helping find the unique value?

I have a problem to writhe a function that finds the unique value from an array, i could not solve the problem but i asked someone to help, he provided the solution by using XOR(^), but could not explain for me to understand itI know that XOR has the following...

117
How to read json response string into Document object of Document AI from java?

How to read json response string into Document object of Document AI from java?

I'm working with another API which calls the google Document AI APII'm trying to read the JSON String from the file into a Document object

119