0
기본 Python 버전 2.6.6 및 하이브 1.2가있는 VM이 있습니다. pyhs2를 성공적으로 설치했습니다. 하지만 파이썬 스크립트를 실행할 때 아래 오류가 발생합니다.Python 2.6.6 및 하이브 연결 문제가 있습니까?
File "test.py", line 7, in <module>
with pyhs2.connect(host='localhost', port=10000, authMechanism="PLAIN", user='hive', password='hive', database='xxxx') as conn:
File "/usr/lib/python2.6/site-packages/pyhs2/__init__.py", line 7, in connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/pyhs2/connections.py", line 46, in __init__
transport.open()
File "/usr/lib/python2.6/site-packages/pyhs2/cloudera/thrift_sasl.py", line 55, in open
self._trans.open()
File "/usr/lib64/python2.6/site-packages/thrift/transport/TSocket.py", line 101, in open
message=message)
thrift.transport.TTransport.TTransportException: Could not connect to localhost:10000
내 hive-site.xml에는 다음과 같은 구성이 있습니다.
<property>
<name>hive.server2.authentication</name>
<value>NONE</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>hive</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>hive</value>
</property>
나는 아래의 스크립트를 사용 :
NotImplementedError: authMechanism is either not supported or not implemented.
도와주세요 :
with pyhs2.connect(host='localhost', port=10000, authMechanism="NONE", user='hive', password='hive', database='xxxx') as conn:
나는 아래의 오류를!
클라이언트는 파이썬 버전을 업그레이드하거나 하이브의 인증 메커니즘을 변경하지 못하도록 유의하십시오.
미리 감사드립니다.