python通过pyhive g连接到hive

2024-04-19 08:35:04 发布

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

当我使用pyhive连接配置单元服务get error时,这是我的操作步骤

我用下面的命令启动配置单元服务

hive --service hiveserver2 --hiveconf hive.server2.thrift.port=10001
hive --service metastore

然后使用Pyhive创建连接

^{pr2}$

但我在下面得到了错误

^{3}$

我能做些什么来解决这个问题?谢谢。在


Tags: 命令getportserviceerrorthrift单元hive