Support Questions
Find answers, ask questions, and share your expertise

Hive metastore unable to connect Alert ()

Explorer

This Question is no longer available.

🙂

1 REPLY 1

Mentor

@Fahad Sarwar

The hive metastore client reads the configuration property hive.metastore.uri to get the list of metastore servers with which it can communicate.

The hive.metastore.uri value should be a list comma separated metastore uris e.g

<property> 
<name> hive.metastore.uris </name> 
<value> thrift://$Metastore_Server1_FQDN,thrift://$Metastore_Server2_FQDN</value> 
</property> 

For secure clusters, add the following configuration property to the hive-site.xml file for each metastore server:

<property> 
<name> hive.cluster.delegation.token.store.class</name> 
<value>org.apache.hadoop.hive.thrift.ZooKeeperTokenStore</value> 
</property>

Failover Scenario

A Hive metastore client always uses the first URI to connect with the metastore server. If the metastore server becomes unreachable, the client randomly picks up a URI from the list and attempts to connect with that.

; ;