Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Hive - Error connecting in FIPS enabled environment

avatar
New Contributor

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

3 REPLIES 3

avatar
Community Manager

@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,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Master Collaborator

@aafc could you please share the CDP (HIve) version you are using? Also, have you tried with the latest Clouldera JDBC driver for hive? 

avatar
New Contributor

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