使用具有Kerberos身份验证的impyla客户端连接到Impala [英] Connect to Impala using impyla client with Kerberos auth
问题描述
我在W8机器上,我在其中使用Python( Anaconda 发行版)通过以下方式连接到我们的 Hadoop 集群中的 Impala : Impyla 软件包.我们的hadoop集群通过 Kerberos 保护.我遵循了 API参考如何进行配置连接.
I'm on a W8 machine, where I use Python (Anaconda distribution) to connect to Impala in our Hadoop cluster using the Impyla package. Our hadoop cluster is secured via Kerberos. I have followed the API REFERENCE how to configure the connection.
from impala.dbapi import connect
conn = connect( host='localhost', port=21050, auth_mechanism='GSSAPI',
kerberos_service_name='impala')
我们正在将Kerberos GSSAPI与SASL一起使用
We are using Kerberos GSSAPI with SASL
auth_mechanism='GSSAPI'
我设法为WIN8安装了python-sasl库,但仍然遇到此错误.
I have managed to install python-sasl library for WIN8 but still I encounter this error.
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',)
我想知道我是否仍然缺少一些依赖项.
I wonder if I am still missing some dependencies.
推荐答案
对我来说,安装此软件包可以解决此问题:libsasl2-modules-gssapi-mit
For me, installing this package fixed it: libsasl2-modules-gssapi-mit
这篇关于使用具有Kerberos身份验证的impyla客户端连接到Impala的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!