Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Impyla - Unsupported mechanism type PLAIN' #187

Open
rbhatia6 opened this issue Mar 25, 2016 · 2 comments
Open

Python Impyla - Unsupported mechanism type PLAIN' #187

rbhatia6 opened this issue Mar 25, 2016 · 2 comments

Comments

@rbhatia6
Copy link

I have the following 2 lines of code. I am using Anaconda on MacOS:

from impala.dbapi import connect
imp_conn = connect(host='hostname.corp.XXX.net', port=10000, user='XXX', password='XXX', auth_mechanism='PLAIN')

However, I get the following error. Is it possible for you to help out?

File "//anaconda/lib/python3.5/site-packages/impala/dbapi.py", line 147, in connect
auth_mechanism=auth_mechanism)
File "//anaconda/lib/python3.5/site-packages/impala/hiveserver2.py", line 644, in connect
transport.open()
File "//anaconda/lib/python3.5/site-packages/thrift_sasl/init.py", line 83, in open
message=("Bad status: %d (%s)" % (status, payload)))
thriftpy.transport.TTransportException: TTransportException(type=1, message="Bad status: 3 (b'Unsupported mechanism type PLAIN')")

@wesm
Copy link
Contributor

wesm commented Mar 26, 2016

I am not sure -- there have been a number of issues regarding Hive connectivity with impyla. Users have reported getting PyHive to work, but I unfortunately am not in a position to test and diagnose these issues myself.

@gittify
Copy link

gittify commented Jun 7, 2016

It worked for me ..I am using the following connection string to connect to hive
conn = connect(host='localhost', port=10000, database='default',auth_mechanism='PLAIN', user='xxx', kerberos_service_name='hive')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants