Monday, June 13, 2016

Beeline HS2 High Availablity Using Zookeeper

Add  Below property in HS2 node and restart the service.
<property>
        <name>hive.server2.support.dynamic.service.discovery</name>
        <value>true</value>
</property>
<property>
        <name>hive.zookeeper.quorum</name>
        <value>node1:5181,node2:5181,node3:5181,node4:5181,node5:5181</value>
</property>
<property>
        <name>hive.server2.zookeeper.namespace</name>
        <value>hiveserver2</value>
</property>

Connecting Hive Via Beeline: