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

Connection Error(TTransportException) to Hive using SQLAlchemy API #436

Open
onlyjiny opened this issue Apr 25, 2022 · 0 comments
Open

Connection Error(TTransportException) to Hive using SQLAlchemy API #436

onlyjiny opened this issue Apr 25, 2022 · 0 comments

Comments

@onlyjiny
Copy link

Hi.

I am trying to connect Hive server using PyHive and SQLAlchemy API with SASL as below code:

ssl_args = {'ssl_cert': 'cacerts.pem'}
engine = create_engine("hive://username:password@hivetestserver.com:10000/default?auth=LDAP", connect_args=ssl_args)
insp = inspect(engine)

But it makes error like below:

thrift.transport.TTransport.TTransportExceptiojn: Could not start SASL; b'Error in sasl_client_start (-4) SASL(-4): no mechanism avaliable: No worthy mechs found'

I tested it on Python 3.6.8 and two virtual environments.

first venv: SQLAlchemy==1.4.35, PyHive==0.6.5, sasl==0.2.1, thrift==0.10.0, thrift-sasl==0.3.0
second venv: SQLAlchemy==1.4.35, PyHive==0.6.5, sasl==0.3.1, thrift==0.16.0, thrift-sasl==0.4.3

Could you please let me know how to fix this issue?

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

1 participant