cloudera / impyla

Python DB API 2.0 client for Impala and Hive (HiveServer2 protocol)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use keytab instead of ticket cache?

xiphl opened this issue · comments

commented

Im using impyla to connect to the hive metastore, and i noticed that everyday i received the error "Ticket Expired", and i would have to kinit everyday.
Is it possible to configure impyla to connect using a keytab instead of ticket cache?
my connection string that i gave to sqlalchemy is:
"impala://{host}/{database}?use_ssl=True&auth_mechanism=GSSAPI&ca_cert={ca_cert_location}"

the account im using is a normal user account to a Kerberoised cluster.

I admit my understanding of Kerberos is lacking here, so i welcome any clarifying explanation if i got it all wrong.
Thanks in advance!

commented

never mind, i figured my solution was to use the krbcontext Python library