from impala.dbapi import connect
conn = connect( host='localhost', port=21050, auth_mechanism='GSSAPI',
kerberos_service_name='impala')
我们将 Kerberos GSSAPI 与 SASL 结合使用
auth_mechanism='GSSAPI'
我已经设法为 WIN8 安装了 python-sasl 库,但我仍然遇到这个错误。
Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found (code THRIFTTRANSPORT): TTransportException('Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found',)
我想知道我是否仍然缺少一些依赖项。
原文由 richban 发布,翻译遵循 CC BY-SA 4.0 许可协议