jdbc - Python connect to Hive use pyhs2 and Kerberos authentication -
i'm connecting hive use pyhs2. hive server required kerberos authentication. knows how convert jdbc string pyhs2 parameter? like: jdbc:hive2://biclient2.server.163.org:10000/default;principal=hive/app-20.photo.163.org@hadoop.hz.netease.com?mapred.job.queue.name=default
i think this:
pyhs2.connect(host='biclient2.server.163.org', port=10000, authmechanism="kerberos", password="something", user='your_user@hadoop.hz.netease.com')
i'm doing same, still not succeed, @ least having meaningful errorcode: (server hive/xxx@yyy.com not found in kerberos database)