正常操做
pip 安装 pyhivegit
https://pypi.org/project/PyHive/github
正确 SQLAlchemy URIapache
hive://localhost:10000/default?auth=NONEapi
//localhost须要改为相应的IPgoogle
一开始使用 hive://localhost:10000/default?auth=NOSASL 出现错误
ERROR: {"error": "Connection failed!nnThe error message returned was:ncannot import name 'constants'"}ip
google下须要安装 pip install pythrifthiveapi 安装后重启出现错误get
ERROR: {"error": "Connection failed!nnThe error message returned was:nTSocket read 0 bytes"}
改为使用 hive://localhost:10000/default?auth=NONE 就OKit