Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found

cdh或者hdp增加kerberos验证后,python链接大数据集群的调用都需要增加认证这一个环节:
如下报错的解决方案:

thriftpy.transport.TTransportException: TTransportException(type=1, message="Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found'")

如果是centos系统中需要增加:

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

如果是Ubuntu18.04系统中,则需要:

sudo apt install libsasl2-modules-gssapi-heimdal

Ubuntu中sasl详细参考官网:
https://packages.ubuntu.com/source/bionic/cyrus-sasl2
Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found_第1张图片

你可能感兴趣的:(Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found)