当前位置:   article > 正文

【Hive从入门到精通之基础篇】配置通过远程Jdbc方式连接之HiveServer2_hive.server2.thrift.port

hive.server2.thrift.port

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

  1. <!-- 配置hive server2远程连接jdbc-->
  2. <property>
  3. <name>hive.server2.thrift.port</name>
  4. <value>10000</value>
  5. </property>
  6. <property>
  7. <name>hive.server2.thrift.bind.host</name>
  8. <value>giveu101</value>
  9. </property>
  10. <property>
  11. <name>hive.server2.long.polling.timeout</name>
  12. <value>5000</value>
  13. </property>

(2)检查端口号10000是否被占用

sudo netstat -anpt | grep 10000

(3)启动hiveserver2服务

  1. bin/hive --service hiveserver2 &
  2. 或者执行下
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/在线问答5/article/detail/881422
推荐阅读
相关标签
  

闽ICP备14008679号