ZooKeeper是什么?

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.3src ecipes。当中分布锁和队列有Java和C两个版本号。选举仅仅有Java版本号。

下载地址:http://apache.fayea.com  搜索:“zookeeper”,然后选择想要的版本号下载就可以。


来源:http://zookeeper.apache.org/

原文地址:https://www.cnblogs.com/mfrbuaa/p/5370976.html