impyla(0.14.0)错误-'tsocket'对象没有属性'isopen'

sh7euo9m  于 2021-06-26  发布在  Hive
关注(0)|答案(3)|浏览(411)

我在尝试创建到hiveserver的连接时遇到以下错误

Traceback (most recent call last):
  File "/Users/user_name/Desktop/ABCo/EEM/EntityManagement/lodurr/data_lake/hive_db.py", line 56, in wrapper
    auth_mechanism='PLAIN')
  File "/Users/user_name/.virtualenvs/entity1/lib/python3.6/site-packages/impala/dbapi.py", line 147, in connect
    auth_mechanism=auth_mechanism)
  File "/Users/user_name/.virtualenvs/entity1/lib/python3.6/site-packages/impala/hiveserver2.py", line 758, in connect
    transport.open()
  File "/Users/user_name/.virtualenvs/entity1/lib/python3.6/site-packages/thrift_sasl/__init__.py", line 67, in open
    if not self._trans.isOpen():

这些是我在执行pip列表时安装的包
六(1.11.0)
节俭(0.3.9)
节俭sasl(0.3.0)
sasl(0.2.1)
异丙基(0.14.0)
我使用macos high sierra作为我的开发环境

ufj5ltwl

ufj5ltwl1#

不知道是什么问题,但你能试试吗
节俭sasl==0.2.1

1zmg4dgp

1zmg4dgp2#

我也有同样的问题,使用了以下软件包:

pip uninstall thrift-sasl
pip uninstall impyla
pip uninstall thrift

pip install thrift-sasl==0.2.1 
pip install thrift==0.9.3
pip install impyla==0.13.8
clj7thdc

clj7thdc3#

通过安装最新版本的impyla(0.16.2)和thrift sasl(0.4.2)也解决了这个问题,使用:

pip install --upgrade impyla
pip install --upgrade thrift-sasl

相关问题