Discussion:
Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found
Manish Maheshwari
2014-04-26 04:11:58 UTC
Permalink
Hi,

I am using pyhs2 with HortonWorks Hadoop Image and am stuck at -
import pyhs2
with
pyhs2.connect(host='localhost',port=10000,authMechanism="PLAIN",user='root',password='hadoop',database='default')
as conn:
... with conn.cursor() as cur:
... print cur.getDatabases()
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/pyhs2/__init__.py", line 7, in
connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/pyhs2/connections.py", line 36, in
__init__
transport.open()
File "/usr/lib/python2.6/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


I have check and recheck that sasl is installed.

Any ideas why this happens?

Thanks,
Manish
Brad Ruderman
2014-04-26 06:09:11 UTC
Permalink
I am guessing you are missing the plain kerb plugin. Try doing a:

yum install cyrus-sasl-plain

What auth are you using on HS2?

Thanks,
Brad
Post by Manish Maheshwari
Hi,
I am using pyhs2 with HortonWorks Hadoop Image and am stuck at -
import pyhs2
with
pyhs2.connect(host='localhost',port=10000,authMechanism="PLAIN",user='root',password='hadoop',database='default')
... print cur.getDatabases()
...
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/pyhs2/__init__.py", line 7, in
connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/pyhs2/connections.py", line 36,
in __init__
transport.open()
File "/usr/lib/python2.6/site-packages/pyhs2/cloudera/thrift_sasl.py",
line 66, in open
message=("Could not start SASL: %s" % self.sasl.getError()))
Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy
mechs found
I have check and recheck that sasl is installed.
Any ideas why this happens?
Thanks,
Manish
Manish Maheshwari
2014-04-26 08:22:14 UTC
Permalink
Thanks Brad. It worked great. I am not sure what auth i am using on Horton
Image. I have just set it up and started executing python programs via ssh
from the host.

Thanks,
Manish
Post by Brad Ruderman
yum install cyrus-sasl-plain
What auth are you using on HS2?
Thanks,
Brad
Post by Manish Maheshwari
Hi,
I am using pyhs2 with HortonWorks Hadoop Image and am stuck at -
import pyhs2
with
pyhs2.connect(host='localhost',port=10000,authMechanism="PLAIN",user='root',password='hadoop',database='default')
... print cur.getDatabases()
...
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/pyhs2/__init__.py", line 7, in
connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/pyhs2/connections.py", line 36,
in __init__
transport.open()
File "/usr/lib/python2.6/site-packages/pyhs2/cloudera/thrift_sasl.py",
line 66, in open
message=("Could not start SASL: %s" % self.sasl.getError()))
Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy
mechs found
I have check and recheck that sasl is installed.
Any ideas why this happens?
Thanks,
Manish
Edward Capriolo
2014-04-26 13:59:37 UTC
Permalink
Sorry to create list trash but when I saw "mech" I got really excited...

http://en.wikipedia.org/wiki/MechWarrior_2:_31st_Century_Combat#MechWarrior_2:_Ghost_Bear.27s_Legacy

my favourite game series of all time.
Post by Manish Maheshwari
Thanks Brad. It worked great. I am not sure what auth i am using on Horton
Image. I have just set it up and started executing python programs via ssh
from the host.
Thanks,
Manish
Post by Brad Ruderman
yum install cyrus-sasl-plain
What auth are you using on HS2?
Thanks,
Brad
Post by Manish Maheshwari
Hi,
I am using pyhs2 with HortonWorks Hadoop Image and am stuck at -
import pyhs2
with
pyhs2.connect(host='localhost',port=10000,authMechanism="PLAIN",user='root',password='hadoop',database='default')
... print cur.getDatabases()
...
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/pyhs2/__init__.py", line 7, in
connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/pyhs2/connections.py", line 36,
in __init__
transport.open()
File "/usr/lib/python2.6/site-packages/pyhs2/cloudera/thrift_sasl.py",
line 66, in open
message=("Could not start SASL: %s" % self.sasl.getError()))
Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy
mechs found
I have check and recheck that sasl is installed.
Any ideas why this happens?
Thanks,
Manish
Lefty Leverenz
2014-04-27 06:30:38 UTC
Permalink
I tend to think of the Hive community as an elaborate video game.

-- Lefty
Post by Edward Capriolo
Sorry to create list trash but when I saw "mech" I got really excited...
http://en.wikipedia.org/wiki/MechWarrior_2:_31st_Century_Combat#MechWarrior_2:_Ghost_Bear.27s_Legacy
my favourite game series of all time.
Post by Manish Maheshwari
Thanks Brad. It worked great. I am not sure what auth i am using on
Horton Image. I have just set it up and started executing python programs
via ssh from the host.
Thanks,
Manish
Post by Brad Ruderman
yum install cyrus-sasl-plain
What auth are you using on HS2?
Thanks,
Brad
Post by Manish Maheshwari
Hi,
I am using pyhs2 with HortonWorks Hadoop Image and am stuck at -
import pyhs2
with
pyhs2.connect(host='localhost',port=10000,authMechanism="PLAIN",user='root',password='hadoop',database='default')
... print cur.getDatabases()
...
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/pyhs2/__init__.py", line 7, in
connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/pyhs2/connections.py", line
36, in __init__
transport.open()
File
"/usr/lib/python2.6/site-packages/pyhs2/cloudera/thrift_sasl.py", line 66,
in open
message=("Could not start SASL: %s" % self.sasl.getError()))
Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy
mechs found
I have check and recheck that sasl is installed.
Any ideas why this happens?
Thanks,
Manish
Loading...