- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to use python connect impala with kerberos?
- Labels:
-
Apache Impala
-
Kerberos
Created on 06-30-2017 09:49 AM - edited 09-16-2022 04:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wany to use python connect impala,and the cluster is kerberozied,I can use java jdbc successful ,and the settings like this :
UserGroupInformation.loginUserFromKeytab("username/mydomain.com@mydomain.COM","/usr/username.keytab");
jdbc:impala://192.168.1.10:21050/default;AuthMech=1;KrbRealm='mydomain.com';KrbHostFQDN=hostalias;KrbServiceName=impala
I have try Impyla,but failed, it throws sasl can't start,how can i connect impala with python?
Created 07-01-2017 02:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pls try to add the below principal in your connection string, it 'may' help you
";principal=impala/hostname@REALM"
hostname - hostname where you have configured impala/hive
REALM - for your kerberos
Created 07-11-2017 11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please share your impyla source code and the error you are getting? That will help me understand why it failed.
Thanks
