[ 
https://issues.apache.org/jira/browse/HBASE-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888999#action_12888999
 ] 

Nicolas Spiegelberg commented on HBASE-1511:
--------------------------------------------

psuedo-distributed ZK is more work than the others based upon the way that 
ZooKeeperWrapper & HQuorumPeer was written.  Should still be doable, but noting 
some of the problems for consideration:

1.  Need to add conf item (hbase.zookeeper.myid) to override ID lookup in 
HQuorumPeer.writeMyID()
2.  should be different per HQuorumPeer: hbase.zookeeper.property.clientPort + 
hbase.zookeeper.property.dataDir
3. hbase.zookeeper.property.server.<id> will be changed to 
<addr>:<peer_port>:<leader_port>:<client_port>
 a. We currently don't allow a custom peer_port + leader_port even though ZK 
supports it
 b. Need extra client_port for ZooKeeperWrapper.setQuorumServers()

I have a feeling I'm going to be writing this code twice after Jonathan 
finishes the master rewrite.

> Pseudo distributed mode in LocalHBaseCluster
> --------------------------------------------
>
>                 Key: HBASE-1511
>                 URL: https://issues.apache.org/jira/browse/HBASE-1511
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.19.3
>            Reporter: Evgeny Ryabitskiy
>            Assignee: Nicolas Spiegelberg
>            Priority: Minor
>             Fix For: 0.92.0
>
>
> After changes to config and adding of parameter:
> {code}
>   <property>
>     <name>hbase.cluster.distributed</name>
>     <value>false</value>
>     <description>The mode the cluster will be in. Possible values are
>       false: standalone and pseudo-distributed setups with managed Zookeeper
>       true: fully-distributed with unmanaged Zookeeper Quorum (see 
> hbase-env.sh)
>     </description>
>   </property>
> {code}
> running HBase in pseudo destr mode become not so easy, I think description 
> for false variant is wrong and you can't get pseudo-distributed mode setting 
> this option to false now.
> I wish to have some option in LocalHBaseCluster for pseudo destr mode where I 
> wish to have:
>  * separate processes for Master and HRSs
>  * ability to dynamically change HRS number in cluster
>  * managed ZK cluster (like it is in local mode now)
>  * managed small local HDFS cluster
> I think it is very useful for testing, debugging and for user experience with 
> HBase, who want to try something close to real HBase not some emulation in 
> standalone mode.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to