Could not start SASL ?
Closed this issue · 4 comments
[arrange@localhost pyhs2-master]$ python example.py
Traceback (most recent call last):
File "example.py", line 8, in
database='default') as conn:
File "/home/arrange/software/pyhs2-master/pyhs2/init.py", line 7, in connect
return Connection(_args, *_kwargs)
File "/home/arrange/software/pyhs2-master/pyhs2/connections.py", line 45, in init
transport.open()
File "/home/arrange/software/pyhs2-master/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
@denghp : This is because of dependencies missing. Please check which are missing for you from : https://github.com/cloudera/hue#development-prerequisites .
For me : cyrus-sasl-devel , cyrus-sasl-gssapi were missing.
yum -y install cyrus-sasl-plain
and restart hue sloved the problem (in CDH5.4.0)
rpm -qa | grep -i cyrus-sasl*
cyrus-sasl-plain-2.1.23-15.el6_6.2.x86_64
cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64
cyrus-sasl-2.1.23-15.el6_6.2.x86_64
cyrus-sasl-devel-2.1.23-15.el6_6.2.x86_64
I got the same errors while using Ubuntu 14.04.1 and I have installed the following packages.
I have just installed apache-hive-1.2.0 and have not installed hue.
sasl2-bin
libsasl2-2
libsasl2-dev
Can anyone help?
no help windows how solve