PyHive icon indicating copy to clipboard operation
PyHive copied to clipboard

TTransportException: Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2'

Open DrYoonus opened this issue 6 years ago • 8 comments

Hi , I am trying connect Hive server 2 using PyHive using the below code conn = hive.Connection(host='host', port=port, username='id', password='paswd',auth='LDAP',database = 'default') and it generate error below.

File "C:\Users\userabc\AppData\Local\Continuum\Anaconda3\lib\site-packages\thrift_sasl_init_.py", line 79, in open message=("Could not start SASL: %s" % self.sasl.getError()))

TTransportException: Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2'.

Could you please let me know how to fix this issue.

DrYoonus avatar May 20 '19 07:05 DrYoonus

Have you solved it?

weihanhua avatar Oct 30 '19 01:10 weihanhua

Did you solved the issue @DrYoonus @weihanhua . Even iam facing same issue.

rritec avatar Jan 30 '20 13:01 rritec

no

weihanhua From: Myla RamReddy Date: 2020-01-30 21:23 To: dropbox/PyHive CC: weihanhua; Mention Subject: Re: [dropbox/PyHive] TTransportException: Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2' (#286) Did you solved the issue @DrYoonus @weihanhua — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

weihanhua avatar Jan 30 '20 13:01 weihanhua

https://blog.csdn.net/weixin_42493346/article/details/104261878 我用这个办法解决了,你们不妨一试

hriszhao avatar Feb 11 '20 05:02 hriszhao

Has any body been able to get past this issue?

nabeelarshed avatar Jun 11 '20 09:06 nabeelarshed

no

cwj avatar Sep 18 '20 03:09 cwj

https://blog.csdn.net/weixin_42493346/article/details/104261878 我用这个办法解决了,你们不妨一试

谢谢,解决了,这里我引用出来:

yum install cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-plain cyrus-sasl-md5 -y

potoo0 avatar Dec 01 '20 06:12 potoo0

https://blog.csdn.net/weixin_42493346/article/details/104261878 我用这个办法解决了,你们不妨一试

谢谢,解决了,这里我引用出来:

yum install cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-plain cyrus-sasl-md5 -y

Yeah, It works on CentOS 7.

alvendarthy avatar Sep 18 '21 03:09 alvendarthy