我在连接到Hive
using时遇到问题Pyhive
。
我在 Windows 机器(Win 10)中使用 Virtualenv,我安装了所有 Pyhive 的要求(sasl、thrift、thrift-sasl 和 MS Visual C++ 9.0)但我得到了同样的错误......
Wrong number of arguments for overloaded function 'Client_setAttr'. Possible C/C++ prototypes are: setAttr(saslwrapper::Client *,std::string const &,std::string const &) setAttr(saslwrapper::Client *,std::string const &,uint32_t)
这是我的代码:
from pyhive import hive
print('Connecting at {}:{}/{}'.format(HOST_NAME, PORT, DATABASE))
hive_connector = hive.Connection(host=HOST_NAME, port=int(PORT),
database=DATABASE, auth='CUSTOM', username=USER, password=PASSWORD)
hive_cursor = hive_connector.cursor()
hive_cursor.execute('show tables')
这是安装在我的虚拟环境中的软件包
future==0.17.1
pure-sasl==0.6.1
PyHive==0.6.1
python-dateutil==2.8.0
"""I took sasl from https://www.lfd.uci.edu/~gohlke/pythonlibs/
"""
sasl==0.1.3
six==1.12.0
thrift==0.11.0
thrift-sasl==0.3.0
有人可以帮我吗?为糟糕的英语道歉。