Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kristianperkins/zeek
ZooKeeper command line application
https://github.com/kristianperkins/zeek
Last synced: 9 days ago
JSON representation
ZooKeeper command line application
- Host: GitHub
- URL: https://github.com/kristianperkins/zeek
- Owner: kristianperkins
- License: apache-2.0
- Created: 2014-05-26T10:25:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-10T10:33:41.000Z (almost 10 years ago)
- Last Synced: 2023-03-25T12:21:58.042Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 309 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Zeek: Zookeeper CLI for caged animals!
======================================.. image:: https://badge.fury.io/py/zeek.png
:target: http://badge.fury.io/py/zeek.. image:: https://pypip.in/d/zeek/badge.png
:target: https://crate.io/packages/zeek/.. image:: https://badge.waffle.io/krockode/zeek.png?label=ready&title=Ready
:target: https://waffle.io/krockode/zeek
:alt: 'Stories in Ready'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 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:2181Drop 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 ` - ` 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/mammals -
/animals/reptiles -
``find``
Example of find which will perform a recursive find from the root.::
$ zeek find /
/ -
/animals -
/animals/mammals -
/animals/mammals/foxes - ok
/animals/reptiles -
/animals/reptiles/snakes - rad
/animals/reptiles/crocodilia -
/animals/reptiles/crocodilia/alligators - hungry
/animals/reptiles/crocodilia/crocodiles - hungryZeek 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