gpt4 book ai didi

python - impyla (0.14.0) 错误 - 'TSocket' 对象没有属性 'isOpen'

转载 作者:太空狗 更新时间:2023-10-30 00:58:57 25 4
gpt4 key购买 nike

尝试创建到 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 list时安装的包

  • 六个 (1.11.0)
  • 节俭 (0.3.9)
  • 节俭-sasl (0.3.0)
  • sasl (0.2.1)
  • 因皮拉 (0.14.0)

我正在使用 macOS High Sierra 作为我的开发环境

最佳答案

我遇到了同样的问题并使用了以下软件包:

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

关于python - impyla (0.14.0) 错误 - 'TSocket' 对象没有属性 'isOpen',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46573180/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com