Zookeeper 共识在 Hbase 中投了多少票

How many votes Zookeeper consensus do in Hbase

这可能是一个简单的愚蠢问题,我只知道将 Zookeepers 保持为奇数以实现 master 投票共识。他们是否也投票给 Hbase 中的其他东西,或者只是为了选择新的 master? 例如:他们投票给区域负载平衡还是根区域服务器? 谢谢!

我不确定你问的是什么,但我认为如果主节点死亡,hbase 从节点(区域服务器)不能成为 hbase 主节点。据我所知,它们是单独的应用程序。所以zookeper对此起不了作用


编辑:

Zookeper 不投票给其他应用程序,只投票选择 zookeeper master,根据 zookeeper 使用的工作负载,你应该有 1-3-5-7 个 zookeeper 节点,很多应用程序使用 zookeeper 在 master 之间交换数据和从节点,zookeeper 是一个面向磁盘 io 的应用程序。我认为,如果你有 5 个以上的 hbase 节点,你应该至少有 3 个 zookeper 节点是安全的。

Hbase master备份机制是有多个master节点,其中一个是active master,其他是backups。

您可以在此处阅读更多内容:

http://www.cloudera.com/documentation/enterprise/5-2-x/topics/cdh_hag_hbase_config.html http://blog.zahoor.in/2012/08/hbase-hmaster-architecture/

Active Master Manager

Handles everything on master side related to master election. This is the place where the backup masters block, until the active master fails or the cluster shuts down. Listens and responds to ZooKeeper notifications on the master znode, both nodeCreated and nodeDeleted. Uses a zNode called “master” under the base zNode.