python连接hiveserver2慢_python无法连接hiveserver2

在尝试使用Python连接HiveServer2时遇到错误:TTransportException: Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found。日志显示问题可能与SASL和Thrift相关。操作系统为Ubuntu 14.04.1,Hive版本为1.2.0,SASL版本为0.1.3,Thrift版本为0.9.1。寻求解决方案。
摘要由CSDN通过智能技术生成

/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/dsnadmin/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).

warnings.warn(msg, UserWarning)

Traceback (most recent call last):

File "hs2.py", line 8, in

database='default') as conn:

File "build/bdist.linux-x86_64/egg/pyhs2/__init__.py", line 7, in connect

File "build/bdist.linux-x86_64/egg/pyhs2/connections.py", line 46, in __init__

File "build/bdist.linux-x86_64/egg/pyhs2/cloudera/thrift_sasl.py", line 66, in open

thrift.transport.TTransport.TTransportException: Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found

这是蜂箱日志:ERROR [HiveServer2-Handler-Pool: Thread-31]: server.TThreadPoolServer (TThreadPoolServer.java:run(296)) - 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:268)

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)

有人能帮忙解决这个问题吗?非常感谢。

操作系统版本:Ubuntu 14.04.1

配置单元版本:apache-Hive-1.2.0

SASL版本:SASL-0.1.3

节俭版:Thrift-0.9.1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值