无法连接启用kerberos的hiveserver2(找不到凭据缓存文件)

wnrlj8wa  于 2021-06-26  发布在  Impala
关注(0)|答案(0)|浏览(454)

正在尝试从主机连接到支持cdh vbox kerberos的impala。impala shell-k命令工作正常,但我无法通过impyla连接:

Traceback (most recent call last):
  File "yarasa.py", line 2, in <module>
    conn = connect(host='127.0.0.1', port=21050, auth_mechanism='GSSAPI', kerberos_service_name='impala')
  File "/Library/Python/2.7/site-packages/impyla-0.13.6-py2.7.egg/impala/dbapi.py", line 147, in connect
    auth_mechanism=auth_mechanism)
  File "/Library/Python/2.7/site-packages/impyla-0.13.6-py2.7.egg/impala/hiveserver2.py", line 658, in connect
    transport.open()
  File "/Library/Python/2.7/site-packages/thrift_sasl/__init__.py", line 72, in open
    message=("Could not start SASL: %s" % self.sasl.getError()))
thrift.transport.TTransport.TTransportException: Could not start SASL: Error in sasl_client_start (-1) SASL(-1): generic failure: GSSAPI Error:  Miscellaneous failure (see text (No credentials cache file found)

这些原则是:

K列表:

你知道吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题