CraZySacX / node-jdbc

JDBC Wrapper for node.js
140 stars 107 forks source link

Hive connection with Kerberos auth #214

Open jshair opened 3 years ago

jshair commented 3 years ago

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