1. 程式人生 > >HIVESERVER2 HA配置及使用(java)

HIVESERVER2 HA配置及使用(java)

<property>

       <name>hive.zookeeper.quorum</name>

       <value>172.x.x.x:2181,172.x.x.x:2181,172.x.x.x:2181</value>

   </property>

   <property>

       <name>hive.zookeeper.session.timeout</name>

       <value>10000</value>

   </property>

   <property>

       <name>hive.server2.support.dynamic.service.discovery</name>

       <value>true</value>

   </property>

   <property>

       <name>hive.server2.zookeeper.namespace</name>

       <value>hiveserver2</value>

   </property>