如何在Power BI中定义与Spark Thrift的本地连接

时间:2019-05-06 22:13:47

标签: apache-spark powerbi thrift

我正在尝试在Power BI中配置到Spark Thrift的本地连接。我能够使用Spark ODBC(具有机制User Name和Thrift transport SASL的localhost:10000)进行连接。但是我想使用Spark连接器,因为它支持直接查询。

print screen

我找不到如何定义连接字符串。尝试了一些类似localhost:10000 / default /; transportMode = http; ssl = true; user = ...的操作,但总是收到错误消息

ERROR TThreadPoolServer:297 - Error occurred during processing of message.
java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: Invalid status 80
        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(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.thrift.transport.TTransportException: Invalid status 80
        at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTransport.java:232)
        at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:184)
        at org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(TSaslServerTransport.java:125)
        at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:271)
        at org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
        at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
        ... 4 more

任何提示将不胜感激!

1 个答案:

答案 0 :(得分:0)

已解决。如此处https://community.powerbi.com/t5/Desktop/Connect-Power-BI-to-Hadoop-Direct-query-HDFS-vs-Spark-vs-custom/td-p/374625所述 它只是无法从Microsoft Store在Power BI中工作。它可以在网站的应用程序中使用。