[ 
https://issues.apache.org/jira/browse/HIVE-18449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16328757#comment-16328757
 ] 

Szehon Ho commented on HIVE-18449:
----------------------------------

Jumping in from HIVE-18347 on Vihang's pointers,  I think it would be great to 
have a pluggable way to get hive.metastore.uris as I tried to do there.

In our data center we have implemented Metastore on Mesos that can be restarted 
automatically across nodes depending on load, and we use consul to dynamically 
discover them.  Consul can also allow us to do some tricks, like not return a 
certain metastore if it is loaded.  Currently the list of metastore.uris as 
read by HS2 is static and would force us to restart all the HS2 everytime a 
Metastore is added, removed, or moved.

> Add configurable policy for choosing the HMS URI from hive.metastore.uris
> -------------------------------------------------------------------------
>
>                 Key: HIVE-18449
>                 URL: https://issues.apache.org/jira/browse/HIVE-18449
>             Project: Hive
>          Issue Type: Improvement
>          Components: Metastore
>            Reporter: Sahil Takiar
>            Assignee: Janaki Lahorani
>            Priority: Major
>
> HIVE-10815 added logic to randomly choose a HMS URI from 
> {{hive.metastore.uris}}. It would be nice if there was a configurable policy 
> that determined how a URI is chosen from this list - e.g. one option can be 
> to randomly pick a URI, another option can be to choose the first URI in the 
> list (which was the behavior prior to HIVE-10815).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to