What is ZooKeeper?
(译:什么是ZooKeeper?)
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
(译:ZooKeeper是一个为 维护配置信息、命名、同步分布式 和 组服务 提供服务的 集中服务。)
All of these kinds of services are used in some form or another by distributed applications.
(译:所有的这些个服务 应用于 一些形式的 或者 其他形式 的分布式应用。)
Each time they are implemented there is a lot of work that goes into fixing the bugs and race conditions that are inevitable.
(译:它们每次在被实现的时候,都不可避免地会有大量的工作要去修复Bug 和 竞争条件【race conditions,没弄明白是什么。】)
Because of the difficulty of implementing these kinds of services, applications initially usually skimp on them ,which make them brittle in the presence of change and difficult to manage.
(译:由于很难实现这些类型的服务,程序最初通常在它们身上花费不足,进而使它们在存在变化的地方很脆弱,也难以管理。)
Even when done correctly, different implementations of these services lead to management complexity when the applications are deployed.
(译:即使做的对,这些服务的不同实现导致应用程序在部署的时候,管理起来很复杂。)
Learn more about ZooKeeper on the ZooKeeper Wiki.
(译:学习更多关于ZooKeeper的,请访问上面的链接。)
【译者注:整体看下来,貌似官网一直在说分布式的程序怎么不好管理,然后分布式的服务在实现起来怎么复杂,倒是没有过多地说ZooKeeper可以干什么。希望能有不同见解的朋友一起交流讨论。】
下面是百度百科上的解释:
【ZooKeeper是一个分布式的,开放源码的分布式应用程序协调服务,是Google的Chubby一个开源的实现,是Hadoop和Hbase的重要组件。它是一个为分布式应用提供一致性服务的软件,提供的功能包括:配置维护、名字服务、分布式同步、组服务等。
ZooKeeper的目标就是封装好复杂易出错的关键服务,将简单易用的接口和性能高效、功能稳定的系统提供给用户。
ZooKeeper包含一个简单的原语集,提供Java和C的接口。
ZooKeeper代码版本中,提供了分布式独享锁、选举、队列的接口,代码在zookeeper-3.4.3\src\recipes。其中分布锁和队列有Java和C两个版本,选举只有Java版本。】
下载地址:http://apache.fayea.com 搜索:“zookeeper”,然后选择想要的版本下载即可。