Skip to main content

ZooKeeper CLI for caged animals

Project description

The Z and K are for Zookeeper, the E’s are just for fun.

Break free from the menagerie of configuration. Zeek is a ZooKeeper command line application that makes it easy to see what is in all those cages. This CLI works best in ZSH.

Turn On - (Installation)

To install zeek:

$ pip install git+https://github.com/krockode/zeek

Tune In - (Configuration)

Zeek connects to localhost:2181 by default. To change this you can either set the environment variable ZEEK_HOSTS or add the option -H/–hosts to the zeek command. The value should be a comma separated list of zookeeper servers to connect to e.g. host1:2181,host2:2181

Drop Out - (Usage)

The goal of zeek is to provide reasonable facimilies of the unix find and grep commands for the Zookeeper structure, so no new learning is required. Both find and grep return matches in the form of <node> - <value> where node is the full path of the node and value is the stringified value of that node.

ls

List nodes underneath the node you specified.

Example:

$ zeek ls /animals
/animals/ -
/animals/mamals -
/animals/reptiles -
find

Example of find which will perform a recursive find from the root.

$ zeek find /
/ -
/animals -
/animals/mammals -
/animals/reptiles -
/animals/reptiles/foxes - ok
/animals/reptiles/snakes - rad
/animals/reptiles/crocodilia -
/animals/reptiles/crocodilia/alligators - hungry
/animals/reptiles/crocodilia/crocodiles - hungry

Zeek find is like find / -name … and searches for zookeeper nodes that match your search:

$ zeek find '*crocodile*'
/animals/reptiles/crocodilia/crocodiles - hungry
grep

Zeek Grep searches zookeeper node values.

$ zeek grep hungry
/animals/reptiles/crocodilia/alligators - hungry
/animals/reptiles/crocodilia/crocodiles - hungry

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zeek-0.1.5.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file zeek-0.1.5.tar.gz.

File metadata

  • Download URL: zeek-0.1.5.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zeek-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a4d4dadd5808dc0e5b2f5f9f1aa1732bffba04e97a45e63b43a1a883bc7bb142
MD5 a63ebead65899c350577a70aa87c0331
BLAKE2b-256 34628a5957ad91aeec8cde357bc7ed6af75bee2b8aacc73b158aca692d73d2f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page