我有ambari登录,想用python直接查询表。正在尝试pyhive模块,但是

2024-10-03 09:08:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我有在服务器上运行的apacheambari登录详细信息(用户名、密码)。在我的本地电脑上,我使用anaconda navigator在Windows上运行Jupter实验室和Jupyter笔记本上的python。 我有多个数据源,希望在python中组合它们。你知道吗

我正在使用pyhive。你知道吗

from pyhive import hive

conn = hive.Connection(host='', port='', username='')

这个代码给了我以下错误。你知道吗

message=("Could not start SASL: %s" % self.sasl.getError())) thrift.transport.TTransport.TTransportException: Could not start SASL: b'Error i n sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a call back: 2'.

我在网上读了很多书,发现了一些关于使用pip安装sasl,模块pyhs2的相关问题和建议,但到目前为止还不走运。你知道吗

任何帮助都将不胜感激。你知道吗


Tags: 服务器navigator密码not详细信息anacondastart用户名