superset icon indicating copy to clipboard operation
superset copied to clipboard

Hive connection

Open superibra opened this issue 9 years ago • 15 comments

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

superibra avatar Feb 14 '17 15:02 superibra

Googling for the error in this 6 days may have helped: https://github.com/cloudera/impyla/issues/149#issuecomment-227519194

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

xrmx avatar Feb 14 '17 22:02 xrmx

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

superibra avatar Feb 20 '17 14:02 superibra

Has the problem been solved?

hungrytortoise avatar Apr 17 '17 10:04 hungrytortoise

@superibra

hungrytortoise avatar Apr 17 '17 10:04 hungrytortoise

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

mistercrunch avatar Apr 17 '17 15:04 mistercrunch

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

hungrytortoise avatar Apr 18 '17 03:04 hungrytortoise

Did you try NONE?

mistercrunch avatar Apr 18 '17 03:04 mistercrunch

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"}

hungrytortoise avatar Apr 18 '17 04:04 hungrytortoise

Here's the related pyhive logic: https://github.com/dropbox/PyHive/blob/59746c31f1b16c96e90a5dd2cb00e23b30d3caea/pyhive/hive.py#L91

mistercrunch avatar Apr 19 '17 22:04 mistercrunch

@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.

panhuida avatar Apr 20 '17 08:04 panhuida

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!

  • https://github.com/dropbox/PyHive/commit/e3ecad1e41ebe1f5484886649228a483390d5969

sungjuly avatar Apr 21 '17 05:04 sungjuly

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

maygupta avatar Jul 07 '17 20:07 maygupta

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

SpyderAlba avatar Jul 27 '17 19:07 SpyderAlba

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

pranavoyo avatar Jul 10 '18 07:07 pranavoyo

@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

sunriseLe avatar Feb 02 '21 13:02 sunriseLe