Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hive connection with Kerberos auth #214

Open
jshair opened this issue Feb 1, 2021 · 0 comments
Open

Hive connection with Kerberos auth #214

jshair opened this issue Feb 1, 2021 · 0 comments

Comments

@jshair
Copy link

jshair commented Feb 1, 2021

Hello. I'm trying to use this module to connect to Hive via JDBC. Hadoop / Hive is configured with Kerberos for authentication. Has anyone attempted to do this using this package? Using java, there are some additional items to be based with the JDBC connection. Classpath and necessary jars are certainly one issue. But I'm seeing some other configuration options. Is this possible? if so, how?

Configuration conf = new Configuration();
conf.set("hadoop.security.authentication", "Kerberos");
UserGroupInformation.setConfiguration(conf);
UserGroupInformation.loginUserFromKeytab("username@HLC.ABC.QW.COM", "path of keytab");

https://stackoverflow.com/questions/49252951/exception-while-connecting-to-hive-using-jdbc-and-kerberos-authentication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant