Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Python code to connect to kerberos security enabled HBase cluster

Python code to connect to kerberos security enabled HBase cluster

New Contributor

Hello,

 

Can you please share sample python code to connect to a Kerberos security enabled HBase cluster from Windows OS?

 

Recently, Kerberos security has been enabled in our organization and that has impacted us from using the

'happybase' python library.

 

Will be very helpful if you can enhance the happybase library with the option of connecting to a secured HBase cluster as the library implements many other useful functions.

 

Also, can you share details on how to do 'kinit' from Windows OS to run the python code?

 

Looking for a solution at the earliest.

 

Thanks,

Guru 

5 REPLIES 5

Re: Python code to connect to kerberos security enabled HBase cluster

New Contributor

We're also stuck with it. Had been happily using 'happybase' in non-kerberized environment, but this happybase thing doesn't support kerberized env. 1 person has added the security patch to happybase0.0.9 but that also doesn't work inside conda environment.

https://github.com/QwertyManiac/happybase/blob/0.9-security/happybase/connection.py

 

Have struggled a lot. Now, finding alternatives..

Re: Python code to connect to kerberos security enabled HBase cluster

New Contributor
Thanks for the update.
Please keep us informed on any alternative you find it useful.

Re: Python code to connect to kerberos security enabled HBase cluster

New Contributor

Thanks for your response Guru. Did you find any happybase alternatives. or you've disabled Kerberos with HBase. 

Re: Python code to connect to kerberos security enabled HBase cluster

New Contributor
No, I havn't found any alternatives yet.

Re: Python code to connect to kerberos security enabled HBase cluster

New Contributor

I am having the similar requirement. Pls help me, if you have found any solutions already.