You can translate the question and the replies:

Kerberos connection to Hive server is throwing error

Have added following below entries in vdpadmin.bat file to be taken during java command:\utility\conf\krb5.ini C:\utility\conf\gss-jaas.conf -Dhadoop.home.dir=C:\utility\ Gss-jaas.conf, Krb5.ini, keytab and principal seems to be correct. Latest winutils.exe is kept in Hadoop.home.dir bin folder in above setting. Also, while setting up a hive connection with below highlighted connection string and taking up default hive jdbc drivers provided with denodo, and opting for Kerberos authentication with keytab, gets below exception. Can someone please help resolving? Have also created a separate java driver to test the above setting and it resolves the host and commits the keytab file, but further it throws below error. *******************************START***************** java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://host:10000/<db>;principal=hive/<instance>@<>;sasl.qop=auth;auth=kerberos;kerberosAuthType=fromSubject: GSS initiate failed at org.apache.hive.jdbc.HiveConnection.openTransport( at org.apache.hive.jdbc.HiveConnection.( at org.apache.hive.jdbc.HiveDriver.connect( at java.sql.DriverManager.getConnection( at java.sql.DriverManager.getConnection( at Caused by: org.apache.thrift.transport.TTransportException: GSS initiate failed at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage( at at at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$ at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$ at Method) at at at at org.apache.hive.jdbc.HiveConnection.openTransport( ... 15 more **************************END**********************
09-03-2017 02:04:09 -0500

1 Answer

Hi, I think this link can be useful to fix the issue: [Pass Through kerberos Authentication - Hive]( Hope this helps!
Denodo Team
13-03-2017 11:56:15 -0400
You must sign in to add an answer. If you do not have an account, you can register here