ZooKeeper程序员指南:开发使用ZooKeeper分布式应用.pdfVIP

  • 1
  • 0
  • 约8.06万字
  • 约 46页
  • 2026-01-27 发布于北京
  • 举报

ZooKeeper程序员指南:开发使用ZooKeeper分布式应用.pdf

ZooKeeperProgrammersGuide

DevelopingDistributedApplicationsthatuseZooKeeper

by

Tableofcontents

1Introduction3

2TheZooKeeperDataModel.3

2.1ZNodes4

2.2TimeinZooKeeper.5

2.3ZooKeeperStatStructure.6

3ZooKeeperSessions.6

4ZooKeeperWatches.10

4.1SemanticsofWatches.11

4.2WhatZooKeeperGuaranteesaboutWatches11

4.3ThingstoRememberaboutWatches.11

5ZooKeeperaccesscontrolusingACLs.12

5.1ACLPermissions12

6PluggableZooKeeperauthentication.16

7ConsistencyGuarantees.17

8Bindings18

8.1JavaBinding.19

8.2CBinding19

9BuildingBlocks:AGuidetoZooKeeperOperations.21

9.1HandlingErrors21

9.2ConnectingtoZooKeeper.21

ZooKeeper程序员指南

9.3读操作.21

9.4写操作.21

9.5处理监视器.21

9.6其他ZooKeeper操作.21

10程序结构,附带简单示例.22

11常见问题和故障排除.22

9.3ReadOperations21

9.4WriteOperations21

9.5HandlingWatches.21

9.6MiscelleaneousZooKeeperOperations.21

10ProgramStructure,withSimpleExample.22

11Gotchas:CommonProblemsandTroubhooting.22

1引言

本指南面向希望创建利用ZooKeeper协调服务的分布式应用程序的开发人员。

它包含概念性和实践性的信息。

本指南的前四个部分对各种ZooKeeper概念进行了次的讨论。这些讨论对于理

解ZooKeeper的工作原理以及如何使用它都是必要的。这部分内容不包含源代码,

但假设读者对分布式计算相关的问题有所了解。这一组中的部分包括:

•ZooKeeper数据模型

•ZooKeeper会话

•ZooKeeper监视

•一致性保证

接下来的四个部分

文档评论(0)

1亿VIP精品文档

相关文档