# 使用 Homebrew, apt, Nix, scoop 安装 zookeeper

查看 zookeeper 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:zookeeper
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zookeeper
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install zookeeper
```

  证据: Debian stable package indexes: zookeeper from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#zookeeper
```

  证据: nixpkgs package indexes: pkgs/by-name/zo/zookeeper/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/zookeeper
```

  证据: Scoop official bucket manifest trees: bucket/zookeeper.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:zookeeper
- **软件包管理器:** Homebrew
- **版本:** 3.9.5
- **来源摘要:** Centralized server for distributed coordination of services
- **主页:** <https://zookeeper.apache.org/>
- **最后更新:** 2026-06-22T14:06:45-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- zkCleanup (别名)
- zkCli (别名)
- zkServer (别名)
- zkServer-initialize (别名)
- zkSnapShotToolkit (别名)
- zkSnapshotComparer (别名)
- zkSnapshotRecursiveSummaryToolkit (别名)
- zkTxnLogToolkit (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.9.5
## 项目历史与用法

Apache ZooKeeper is one of the canonical packages for distributed coordination: a replicated service that gives clustered applications naming, configuration, synchronization, membership, watches, and ordered state changes. It came out of Yahoo's large-scale infrastructure work and became a foundation block for much of the Hadoop-era data stack.

### 项目历史

ZooKeeper was developed at Yahoo to simplify coordination problems in large distributed systems. The 2010 USENIX paper by Hunt, Konar, Junqueira, and Reed describes it as a high-performance coordination kernel rather than a full application framework: clients build locks, leader election, group membership, and configuration patterns on top of a small, ordered data model.

The project moved into the Apache ecosystem through Hadoop and later became a top-level Apache project. Its model of znodes in a hierarchical namespace made it familiar to Unix-minded operators, while the ensemble architecture made it reliable enough for service discovery and cluster metadata in production systems.

### 采用历史

ZooKeeper became deeply associated with the Hadoop generation of infrastructure because projects such as Hadoop, HBase, Kafka, SolrCloud, and other distributed systems used it to coordinate cluster state. The Apache ZooKeeper site still describes it as trusted by Kafka, Hadoop, HBase, and many other distributed systems.

The project's own PoweredBy page records adoption across companies and Apache projects for leader election, service discovery, sharding, locking, group membership, and configuration management. In the 2020s, Kafka's move toward KRaft reduced one famous dependency, but ZooKeeper remains an active Apache project and still appears in older Kafka deployments and other distributed stacks.

### 使用方式

Operators run ZooKeeper as an odd-sized ensemble and connect applications through client libraries or zkCli. Common package-level tasks include creating znodes for configuration, watching paths for changes, tracking live members through ephemeral nodes, and supporting recipes such as leader election, distributed locks, barriers, and service discovery.

The practical caution is that ZooKeeper is coordination infrastructure, not a general database. It is strongest for small metadata, ordered updates, and read-heavy coordination workloads; using it as bulk storage or chatty application state works against the design.

### 为什么软件包爱好者会关心

ZooKeeper is package-nerd significant because it explains why so many distributed packages ship with zk-prefixed tools, conf/zoo.cfg examples, and operational advice about ensembles. For years, installing parts of the big-data stack meant also understanding ZooKeeper.

It also marks a historical transition in open-source infrastructure packaging: distributed systems stopped being single daemons and became small constellations of daemons, CLIs, config files, and service dependencies. ZooKeeper was often the coordination daemon in that constellation.

### 时间线

- 2000s: Yahoo develops ZooKeeper for coordination problems in large distributed infrastructure.
- Late 2000s: ZooKeeper moves through the Apache Hadoop ecosystem and gains use in Hadoop-adjacent projects.
- 2010: The USENIX ATC paper formalizes ZooKeeper as a wait-free coordination service for Internet-scale systems.
- 2010s: ZooKeeper becomes common infrastructure for Kafka, HBase, SolrCloud, Hadoop deployments, and company service platforms.
- 2020s: Some major users, especially Kafka, reduce or remove their ZooKeeper dependency, while ZooKeeper itself remains maintained for coordination workloads.

### Related projects

- Google Chubby: an earlier lock service often discussed as a conceptual predecessor for distributed coordination services.
- Apache Curator: a higher-level Java client and recipe library built to make ZooKeeper applications easier to write.
- etcd and Consul: later coordination/service-discovery systems that occupy adjacent operational territory.
- Apache Kafka, HBase, SolrCloud, Hadoop, and NiFi: distributed systems historically associated with ZooKeeper deployments.

### 来源

- <https://cwiki.apache.org/confluence/display/zookeeper/poweredby>
- <https://www.openlogic.com/blog/using-kafka-zookeeper>
- <https://www.usenix.org/legacy/event/atc10/tech/full_papers/Hunt.pdf>
- <https://zookeeper.apache.org/>


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: conf/zoo.cfg
## 其他软件包管理器记录

- Debian apt - libzookeeper-java - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Core Java libraries for zookeeper | https://zookeeper.apache.org
- Debian apt - libzookeeper-java-doc - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-java-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | API Documentation for zookeeper | https://zookeeper.apache.org
- Debian apt - libzookeeper-mt-dev - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-mt-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for multi threaded zookeeper C bindings | https://zookeeper.apache.org
- Debian apt - libzookeeper-mt2 - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-mt2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Multi threaded C bindings for zookeeper | https://zookeeper.apache.org
- Debian apt - libzookeeper-st-dev - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-st-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for single threaded zookeeper C bindings | https://zookeeper.apache.org
- Debian apt - libzookeeper-st2 - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-st2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Single threaded C bindings for zookeeper | https://zookeeper.apache.org
- Debian apt - python3-zookeeper - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: python3-zookeeper from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python bindings for zookeeper | https://zookeeper.apache.org
- Debian apt - zookeeper - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: zookeeper from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | High-performance coordination service for distributed applications | https://zookeeper.apache.org
- Debian apt - zookeeper-bin - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: zookeeper-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line utilities for zookeeper | https://zookeeper.apache.org
- Debian apt - zookeeperd - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: zookeeperd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Init control scripts for zookeeper | https://zookeeper.apache.org
- Nix - zookeeper: normalized package name match | nixpkgs package indexes: pkgs/by-name/zo/zookeeper/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libzookeeper-java - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Core Java libraries for zookeeper | https://zookeeper.apache.org
- Ubuntu apt - libzookeeper-java-doc - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-java-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | API Documentation for zookeeper | https://zookeeper.apache.org
- Ubuntu apt - libzookeeper-mt-dev - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-mt-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for multi threaded zookeeper C bindings | https://zookeeper.apache.org
- Ubuntu apt - libzookeeper-mt2 - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-mt2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Multi threaded C bindings for zookeeper | https://zookeeper.apache.org
- Ubuntu apt - libzookeeper-st-dev - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-st-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for single threaded zookeeper C bindings | https://zookeeper.apache.org


## Combined YAML source

View the package source record on GitHub. [combined/zookeeper.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zookeeper.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
