Created 04-20-2023 01:56 AM
Hello,
Getting the following error when connecting to a Hive server. The jbdc client is being executed in an FIPS enabled environment.
Caused by: java.lang.NullPointerException: Cannot invoke "javax.security.sasl.SaslServer.isComplete()" because "this.saslServer" is null at org.apache.thrift.transport.TSaslTransport$SaslParticipant.isComplete(TSaslTransport.java:547) ~[?:?] at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:262) ~[?:?] at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37) ~[?:?] at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:343) ~[?:?] at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:228) ~[?:?]
Thanks
Created 04-20-2023 02:20 AM
@aafc, Welcome to our community! To help you get the best possible answer, I have tagged in our Hive experts @smruti @asish who may be able to assist you further.
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 06-26-2023 06:17 AM
@aafc could you please share the CDP (HIve) version you are using? Also, have you tried with the latest Clouldera JDBC driver for hive?
Created 06-26-2023 11:45 AM
Hello @smruti,
I will reply later with the version, in the meantime I tried the latest driver and got a similar error:
Caused by: java.lang.NullPointerException: Cannot invoke "javax.security.sasl.SaslServer.dispose()" because "this.saslServer" is null
at com.cloudera.hive.jdbc42.internal.apache.thrift.transport.TSaslTransport$SaslParticipant.dispose(TSaslTransport.java:551) ~[hiveJDBC42.jar:?]
at com.cloudera.hive.jdbc42.internal.apache.thrift.transport.TSaslTransport.close(TSaslTransport.java:393) ~[hiveJDBC42.jar:?]
at com.cloudera.hive.jdbc42.internal.apache.thrift.transport.TSaslClientTransport.close(TSaslClientTransport.java:38) ~[hiveJDBC42.jar:?]
at com.cloudera.hiveserver2.hivecommon.api.HiveServer2ClientFactory.createTransport(Unknown Source) ~[hiveJDBC42.jar:?]
at com.cloudera.hiveserver2.hivecommon.api.ServiceDiscoveryFactory.createClient(Unknown Source) ~[hiveJDBC42.jar:?]
at com.cloudera.hiveserver2.hivecommon.core.HiveJDBCCommonConnection.connectToServer(Unknown Source) ~[hiveJDBC42.jar:?]
at com.cloudera.hiveserver2.hivecommon.core.HiveJDBCCommonConnection.establishConnection(Unknown Source)
Thanks