Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Kerberized Spark ODBC connection from Windows: No data or no sasl data in the stream

New Contributor

Dear Community,

I try to access Spark ThriftServer through ODBC from a Windows Client. Here some Details:

  • Cluster HDP 2.6 kerberized with Active Direkctory in the same Domain as the Client
  • JDBC connection to Spark and Hive over ODBC work fine
  • ODBC config:
    • Host(s): thrift server host
    • Port: thrift server port
    • Mechanism: Kerberos
    • Realm: <empty>
    • Host FQDN: _Host
    • Service Name: Spark
    • Thrfit Transport: SASL
  • Tried different ODBC drivers, always the same error:
17/08/09 14:57:37 ERROR 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.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory$1.run(HadoopThriftAuthBridge.java:739)  at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory$1.run(HadoopThriftAuthBridge.java:736)  at java.security.AccessController.doPrivileged(Native Method)  at javax.security.auth.Subject.doAs(Subject.java:360)  at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1846)  at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory.getTransport(HadoopThriftAuthBridge.java:736)  at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:268)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  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)  ... 10 more

Can anybody gues what is going wrong?

1 REPLY 1

Mentor

@Michael Schobel-Thoma

Have you had a look at this document precisely see page 11.

Was your REALM <empty> or just obscured?.