[
https://issues.apache.org/jira/browse/HBASE-10851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047965#comment-14047965
]
Demai Ni commented on HBASE-10851:
----------------------------------
[~jxiang]
many thanks for your reponse. sorry for the delay, got occupied during weekend.
My cluster is a single node cluster, but I put this property
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
to mimic distributed, I guess that 'fool' the logic in
{code:title="LocalHBaseCluster"}
--
/**
* @param c Configuration to check.
* @return True if a 'local' address in hbase.master value.
*/
public static boolean isLocal(final Configuration c) {
boolean mode = c.getBoolean(HConstants.CLUSTER_DISTRIBUTED,
HConstants.DEFAULT_CLUSTER_DISTRIBUTED);
return(mode == HConstants.CLUSTER_IS_LOCAL);
}
{code}
{code:title="HMasterCommandLine"}
...
if (LocalHBaseCluster.isLocal(conf)) {
DefaultMetricsSystem.setMiniClusterMode(true);
+ conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MINTOSTART, 1);
...
}
{code}
> Wait for regionservers to join the cluster
> ------------------------------------------
>
> Key: HBASE-10851
> URL: https://issues.apache.org/jira/browse/HBASE-10851
> Project: HBase
> Issue Type: Bug
> Reporter: Jimmy Xiang
> Assignee: Jimmy Xiang
> Priority: Critical
> Fix For: 0.99.0
>
> Attachments: hbase-10851.patch, hbase-10851_v2.patch
>
>
> With HBASE-10569, if regionservers are started a while after the master, all
> regions will be assigned to the master. That may not be what users expect.
> A work-around is to always start regionservers before masters.
> I was wondering if the master can wait a little for other regionservers to
> join.
--
This message was sent by Atlassian JIRA
(v6.2#6252)