赞
踩
1、首先需要配置hive-site.xml文件
(1)hive.server2.thrift.port --端口号:10000
(2)hive.server2.thrift.bind.host --绑定主机名称为hive安装的那台节点主机名
(3)hive.server2.long.polling.timeout -- 超时时间为5000,去掉L
- <!-- 配置hive server2远程连接jdbc-->
- <property>
- <name>hive.server2.thrift.port</name>
- <value>10000</value>
- </property>
- <property>
- <name>hive.server2.thrift.bind.host</name>
- <value>giveu101</value>
- </property>
- <property>
- <name>hive.server2.long.polling.timeout</name>
- <value>5000</value>
- </property>
(2)检查端口号10000是否被占用
sudo netstat -anpt | grep 10000
(3)启动hiveserver2服务
- bin/hive --service hiveserver2 &
- 或者执行下
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。