Created 07-05-2023 12:32 AM
driver class: com.cloudera.hive.jdbc.HS2Driver
jar : HiveJDBC42-2.6.11.1014
the kerberos needs a keytab file, i wonder if this can be set by 'org.apache.hadoop.security.UserGroupInformation' class
thks.
Created on 07-05-2023 03:34 PM - edited 07-05-2023 03:35 PM
@sevens You might want to use latest version: 2.6.21 and also there is no hard limit to use UGI with Cloudera Driver as opposed to Apache Drivers.
One option is to use JAAS file like below.
client.jaas
Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="PathToTheKeyTab"
principal="cloudera@CLOUDERA"
doNotPrompt=true;
};
and set the java.security.auth.login.config system property to the location of the JAAS file.
eg: java -Djava.security.auth.login.config=/opt/clientconf/client.jaas
Created 07-05-2023 03:10 PM
@sevens Welcome to the Cloudera Community!
To help you get the best possible solution, I have tagged our Hive experts @Shmoo and @mszurap who may be able to assist you further.
Please keep us updated on your post, and we hope you find a satisfactory solution to your query.
Regards,
Diana Torres,Created on 07-05-2023 03:34 PM - edited 07-05-2023 03:35 PM
@sevens You might want to use latest version: 2.6.21 and also there is no hard limit to use UGI with Cloudera Driver as opposed to Apache Drivers.
One option is to use JAAS file like below.
client.jaas
Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="PathToTheKeyTab"
principal="cloudera@CLOUDERA"
doNotPrompt=true;
};
and set the java.security.auth.login.config system property to the location of the JAAS file.
eg: java -Djava.security.auth.login.config=/opt/clientconf/client.jaas
Created on 07-06-2023 01:51 AM - edited 07-06-2023 07:30 AM
thks!