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)


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -