HiveServer2的高可用-HA配置

HiveServer2的高可用-HA配置

  :http://lxw1234.com/archives/2016/05/675.htm

作者在配置环境中也遇到问题,更详细内容请点击上方链接 ,thanks

set hive-site :


 
   
  1. hive.server2.support.dynamic.service.discovery
  2. true
  3.  
  4. hive.server2.zookeeper.namespace
  5. hiveserver2_zk
  6.  
  7. hive.zookeeper.quorum
  8. zkNode1:2181,zkNode2:2181,zkNode3:2181
  9.  
  10. hive.zookeeper.client.port
  11. 2181
  12.  
  13.  
  14. hive.server2.thrift.bind.host
  15. 0.0.0.0
  16.  
  17. hive.server2.thrift.port
  18. 10001 //两个HiveServer2实例的端口号要一致


testing :



 
   ./ 
   beeline 
   ! 
   connect jdbc 
   : 
   hive2 
   : 
   //zkNode1:2181,zkNode2:2181,zkNode3:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2_zk liuxiaowen "" 
   

转载于:https://www.cnblogs.com/TendToBigData/p/10501444.html

你可能感兴趣的:(HiveServer2的高可用-HA配置)