Created on 12-06-2018 05:13 AM - edited 09-16-2022 06:57 AM
Hello,
We are running CDH 5.9.2 cluster. Kerberos is not enabled in our cluster.SSL/TLS not enabled for Hive. Users are connected through Power BI to hive.We are using spark thrift service to run hive queries.Our spark thrift service got stopped. In the log I see below error,
ERROR server.TThreadPoolServer: Error occurred during processing of message.
java.lang.RuntimeException: org.apache.thrift.transport.TSaslTransportException: No data or no sasl data in the stream
at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:219)
at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.thrift.transport.TSaslTransportException: No data or no sasl data in the stream
at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:328)
at org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
... 4 more
Please help.
Thanks,
Priya
Created 12-08-2018 03:05 PM
Hi,
Check your HiveServer2 config file hive-site.xml ...add this
<property>
<name>hive.server2.authentication</name>
<value>NOSASL</value>
</property>
Created 12-10-2018 01:59 AM
Created on 12-10-2018 09:31 AM - edited 12-10-2018 10:04 AM
Hi,
Both SSL and SASL are different, please add the parameter which i have posted.The one which I asked you is for SASL ..the one which you have disbled is for SSL
Created 12-13-2018 03:23 AM
Created 12-23-2018 08:02 PM
Created 12-26-2018 08:30 AM
Hi priya,
Can you tell me from which CLI you are connecting to hive and post me the command which you are running.Please also let me know whether you have logged in as root or normal user for that shell.
Regards,
Bhuvan
Created 12-27-2018 05:00 AM
Created 01-10-2019 04:17 AM
Hi Priya,
Sorry for late reply.Please try to connect thei hive server2 as below format
"!connect jdbc:hive2://127.0.0.1:10000/default/;auth=nosasl"
Please try to login with root user and try to access database and files
Regards,
Bhuvan
Created 08-12-2019 02:09 PM
Hi All,
I am facing the same error , I am trying to connect from the ODBC driver. Do you have any idea , how you resolve this issue.
i am getting the error in odbc as Failed to initialize security context: No authority could be contacted for authentication. and in hiveserver2 log.Caused by: org.apache.thrift.transport.TSaslTransportException: No data or no sasl data in the stream
Thank you,
Thanks & Regards,
Siva