You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Python to connect hive in local/embedded mode but ending up in below error. Script used
`#!/usr/bin/env python
import pyhs2
with pyhs2.connect(host='localhost',port=50070,authMechanism="PLAIN") as conn:
with conn.cursor() as cur:
#Show databases
print cur.getDatabases()`
Output: vaibhav@vaibhav-Lenovo-G570:/home/hduser$ ./Automation2.py Traceback (most recent call last): File "./Automation2.py", line 4, in <module> with pyhs2.connect(host='localhost',port=50070,authMechanism="PLAIN") as conn: File "/home/vaibhav/.local/lib/python2.7/site-packages/pyhs2/__init__.py", line 7, in connect return Connection(*args, **kwargs) File "/home/vaibhav/.local/lib/python2.7/site-packages/pyhs2/connections.py", line 46, in __init__ transport.open() File "/home/vaibhav/.local/lib/python2.7/site-packages/pyhs2/cloudera/thrift_sasl.py", line 66, in open message=("Could not start SASL: %s" % self.sasl.getError())) thrift.transport.TTransport.TTransportException: Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found
The text was updated successfully, but these errors were encountered:
Hi @BradRuderman ,
I'm using Python to connect hive in local/embedded mode but ending up in below error.
Script used
`#!/usr/bin/env python
import pyhs2
with pyhs2.connect(host='localhost',port=50070,authMechanism="PLAIN") as conn:
with conn.cursor() as cur:
#Show databases
print cur.getDatabases()`
Output:
vaibhav@vaibhav-Lenovo-G570:/home/hduser$ ./Automation2.py Traceback (most recent call last): File "./Automation2.py", line 4, in <module> with pyhs2.connect(host='localhost',port=50070,authMechanism="PLAIN") as conn: File "/home/vaibhav/.local/lib/python2.7/site-packages/pyhs2/__init__.py", line 7, in connect return Connection(*args, **kwargs) File "/home/vaibhav/.local/lib/python2.7/site-packages/pyhs2/connections.py", line 46, in __init__ transport.open() File "/home/vaibhav/.local/lib/python2.7/site-packages/pyhs2/cloudera/thrift_sasl.py", line 66, in open message=("Could not start SASL: %s" % self.sasl.getError())) thrift.transport.TTransport.TTransportException: Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found
The text was updated successfully, but these errors were encountered: