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

Nemon Lou commented on HIVE-10815:
----------------------------------

[~thiruvel]   Thanks for reply.
I find that only the first time connect use the fixed order.
There is already a mechanism that promote random Metastore URI when reconnect.
(See promoteRandomMetaStoreURI() in reconnect method for detail.)
So shuffle at the creation phase is enough to make different client connect to 
different Metastore.

> Let HiveMetaStoreClient Choose MetaStore Randomly
> -------------------------------------------------
>
>                 Key: HIVE-10815
>                 URL: https://issues.apache.org/jira/browse/HIVE-10815
>             Project: Hive
>          Issue Type: Improvement
>          Components: HiveServer2, Metastore
>    Affects Versions: 1.2.0
>            Reporter: Nemon Lou
>            Assignee: Nemon Lou
>         Attachments: HIVE-10815.patch
>
>
> Currently HiveMetaStoreClient using a fixed order to choose MetaStore URIs 
> when multiple metastores configured.
>  Choosing MetaStore Randomly will be good for load balance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to