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

Hive connection #2174

Closed
superibra opened this issue Feb 14, 2017 · 15 comments · Fixed by #13608
Closed

Hive connection #2174

superibra opened this issue Feb 14, 2017 · 15 comments · Fixed by #13608

Comments

@superibra
Copy link

I'm new at superset
When i want to connect to hive database that shows me this error
TTransportException(message="Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found'", type=1"
i'm blocked for 6days in this error
did you know how to solve this error ?
capture

@xrmx
Copy link
Contributor

xrmx commented Feb 14, 2017

Googling for the error in this 6 days may have helped:
cloudera/impyla#149 (comment)

That's an issue with the connector, not a superset issue.

@superibra
Copy link
Author

Before i wrote this post. I followed the answer in the 149 post with attention but it remains the same error. that's why i will see if i can find a solution to this issue at pyhive forum
Thank you for answering

@hungrytortoise
Copy link

Has the problem been solved?

@hungrytortoise
Copy link

@superibra

@mistercrunch
Copy link
Member

You may want to try auth=plain or auth=PLAIN

@hungrytortoise
Copy link

i have done what you say,but meet a new error.
ERROR: {"error": "Connection failed!\n\nThe error message returned was:\nOnly NONE & NOSASL authentication are supported, got PLAIN"}
my SQLAlchemy URI is "hive://hive@xxxxxx:10000/xxx_idmapping?auth=PLAIN"
how to fix it ?
tks

@mistercrunch
Copy link
Member

Did you try NONE?

@hungrytortoise
Copy link

hungrytortoise commented Apr 18, 2017

i have tried it,but meet the following issue.
ERROR: {"error": "Connection failed!\n\nThe error message returned was:\nCould not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found"}

@mistercrunch
Copy link
Member

@panhuida
Copy link

@superibra @hungrytortoise @mistercrunch , I guess the pyhive package only support python2.7, not support python 3.

https://pypi.python.org/pypi/PyHive/0.2.1
Requirements

Install using

pip install pyhive[hive] for the Hive interface and
pip install pyhive[presto] for the Presto interface.
PyHive works with

Python 2.7
For Presto: Presto install
For Hive: HiveServer2 daemon
There’s also a third party Conda package.

@sungjuly
Copy link
Member

That's true, let's wait a couple of days, PyHive is trying to support Python3 since data scientist guy from Airbnb contributes for that, I expect new version will be rolled out soon!

@maygupta
Copy link

maygupta commented Jul 7, 2017

@superibra @hungrytortoise Were you able to solve this issue ?

@SpyderRivera
Copy link
Contributor

Any update on this? Did you get it working? Did you try python 2.7?

@pranavoyo
Copy link

hitting this issue with superset version 0.26.3 and pyhive 0.6.0; please assist

@sunriseLe
Copy link

@superibra @hungrytortoise @mistercrunch , I guess the pyhive package only support python2.7, not support python 3.

https://pypi.python.org/pypi/PyHive/0.2.1
Requirements

Install using

pip install pyhive[hive] for the Hive interface and
pip install pyhive[presto] for the Presto interface.
PyHive works with

Python 2.7
For Presto: Presto install
For Hive: HiveServer2 daemon
There’s also a third party Conda package.

after insatll pyhive[presto], I can access presto, no error like that:
Invalid driver: presto

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

Successfully merging a pull request may close this issue.

10 participants