我需要把火花和力比连接起来。我不知道同一辆车需要什么司机。而且,我在本地模式下运行spark,而不安装apache。因此,我没有配置节俭服务器的hivesite.xml文件。启动节省服务器后,我使用命令$SPARK_HOME\bin\beeline.cmd启动了!connect jdbc:hive2://localhost:10000,并使用userid作为管理员(与本地计算机相同)和空白密码,并将其输出为:
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桌面连接起来。有人能提供一些链接来进行连接吗?
发布于 2016-11-23 11:13:45
@Birla,这看起来像是here问题中提到的TCP错误。
不建议在本地机器中使用Th裂隙,因为需要使用专用的Metastore服务器来处理身份验证和并行性。
推荐:安装Horton /Cloudera,准备好运行VM,然后从power访问它们。


https://stackoverflow.com/questions/40762410
复制相似问题