python - Connect to Impala using impyla client with Kerberos auth -


i'm on w8 machine, use python (anaconda distribution) connect impala in our hadoop cluster using impyla package. our hadoop cluster secured via kerberos. have followed api reference how configure connection.

    impala.dbapi import connect     conn = connect( host='localhost', port=21050, auth_mechanism='gssapi',                kerberos_service_name='impala') 

we using kerberos gssapi sasl

auth_mechanism='gssapi' 

i have managed install python-sasl library win8 still encounter 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 still missing dependencies.

install kerberos python package, fix issue.


Comments