ZooKeeper分布式过程协同技术详解

本文详细介绍了ZooKeeper的使命,基础知识如ZooKeeper的API,包括创建、删除、设置数据等操作,以及znode的类型和版本管理。还涵盖了ZooKeeper的架构,包括独立和仲裁模式,以及如何开始使用ZooKeeper。文中通过主-从模式的例子展示了ZooKeeper如何实现分布式过程协同,并提醒在使用ZooKeeper API时需要注意的顺序和状态变化处理。
摘要由CSDN通过智能技术生成

英文版名称:ZooKeeper: Distributed Process Coordination

第1章 简介

当你决定使用ZooKeeper来设计应用时,最好将应用数据和协同数据独立开。
比如:网路邮箱服务的用户对自己邮箱中的内容感兴趣,但是并不关心由哪台服务器来处理特定邮箱的请求。在这个例子中,邮箱内容就是应用数据,而从邮箱到某一台邮箱服务器之间的映射关系就是协同数据(或称元数据)。整个ZooKeeper服务所管理的就是后者。

1.1 ZooKeeper的使命

  • Apache Hbase
    HBase是一个通常与Hadoop一起使用的数据存储仓库。在HBase中,ZooKeeper用于选举一个集群内的主节点,以便跟踪可用的服务器,并保存集群的元数据。
  • 关于ZooKeeper名字的来源
    ZooKeeper was developed at Yahoo! Research. We had been working on ZooKeeper for a while and pitching it to other groups, so we needed a name. At the time the group had been working with the Hadoop team and had started a variety of projects with the names of animals, Apache Pig being the most well known. As we were talking about different possible names, one of the group members mentioned that we should avoid another animal name because our manager thought it was s
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值