【发布时间】:2016-11-26 07:32:21
【问题描述】:
我需要将 spark 与 powerbi 连接。我不知道相同的所需驱动程序。而且我在本地模式下运行 spark 而没有安装 apache hive。所以我没有用于配置节俭服务器的 hive-site.xml 文件。启动 thrift 服务器后,我启动 $SPARK_HOME\bin\beeline.cmd 并使用命令!connect jdbc:hive2://localhost:10000 连接 thrift 服务器,并使用用户 ID 作为管理员(与我的本地计算机相同)和空白密码,输出为:
beeline> !connect jdbc:hive2://localhost:10000
Connecting to jdbc:hive2://localhost:10000
Enter username for jdbc:hive2://localhost:10000: Administrator
Enter password for jdbc:hive2://localhost:10000:
log4j:WARN No appenders could be found for logger (org.apache.hive.jdbc.Utils).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Connected to: Spark SQL (version 2.0.1)
Driver: Hive JDBC (version 1.2.1.spark2)
Transaction isolation: TRANSACTION_REPEATABLE_READ
似乎建立了连接,但是当使用命令查询数据库时:show databases;,它显示错误(直线):
Error: org.apache.thrift.transport.TTransportException: java.net.SocketException: Software caused connection abort: socket write error (state=08S01,code=0)` and error(in thrift server cmd):`Exception in thread "HiveServer2-Handler-Pool: Thread-XXX"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "HiveServer2-Handler-Pool: Thread-XXX"
我不明白这个错误。请帮助我,并且我想将它与安装在本地计算机上的 powerbi desktop 连接。有人可以提供一些链接以供阅读以建立连接吗?
【问题讨论】:
标签: apache-spark apache-spark-sql tableau-api powerbi beeline