{"id":21232346,"url":"https://github.com/o19s/jackhanna","last_synced_at":"2025-07-10T17:31:06.613Z","repository":{"id":36684645,"uuid":"40991107","full_name":"o19s/jackhanna","owner":"o19s","description":"Simple CLI for Zookeeper","archived":false,"fork":false,"pushed_at":"2022-01-04T16:46:33.000Z","size":38,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T15:22:38.058Z","etag":null,"topics":["cli","zookeeper"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/o19s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-18T18:44:09.000Z","updated_at":"2021-04-22T11:47:04.000Z","dependencies_parsed_at":"2022-09-05T23:30:41.073Z","dependency_job_id":null,"html_url":"https://github.com/o19s/jackhanna","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/o19s/jackhanna","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o19s%2Fjackhanna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o19s%2Fjackhanna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o19s%2Fjackhanna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o19s%2Fjackhanna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/o19s","download_url":"https://codeload.github.com/o19s/jackhanna/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o19s%2Fjackhanna/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264618953,"owners_count":23638376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","zookeeper"],"created_at":"2024-11-20T23:50:30.330Z","updated_at":"2025-07-10T17:31:06.236Z","avatar_url":"https://github.com/o19s.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jackhanna\nSimple CLI for Zookeeper\n\nWhy do we need another CLI for Zookeeper you ask?  \n\nI was bitten by the fact that the CLI that ships with Zookeeper, `zkCli.sh` is jsut one character different then the one that ships with Solr, `zkcli.sh`.  Several hours of debugging later, I decided to write my own!  I wanted to use the same commands I use in Unix, `ls`, `cat`, `rm`, `du` etc to work with data in Zookeeper.\n\nThere isn't a good one out there that is just based on Java, you need Go or Python or Scala as dependencies.  I wanted to build a simple one that would allow the basic Unix style operators to work with Zookeeper.\n\nThe original version of this was based on the Solr client, and then I ported it to Curator.\n\n\n## Examples of using the CLI\n\nList out nodes:\n\n```\njava -jar jackhanna.jar localhost:2181 ls /environment\njava -jar jackhanna.jar localhost:2181 ls --zkPath=/environment\n```\n\nView the contents of a node:\n\n```\njava -jar jackhanna.jar localhost:2181 cat /environment/somevalue\njava -jar jackhanna.jar localhost:2181 cat --zkPath=/environment/somevalue\n```\n\nList out the disk usage in Zookeeper:\n\n```\njava -jar jackhanna.jar localhost:2181 du /environment\njava -jar jackhanna.jar localhost:2181 du --zkPath=/environment\n```\n\nDelete nodes in Zookeeper:\n\n```\njava -jar jackhanna.jar localhost:2181 rm /environment/properties\njava -jar jackhanna.jar localhost:2181 rm --zkPath=/environment/properties\n```\n\nPut a single file into Zookeeper:\n\n```\njava -jar jackhanna.jar localhost:2181 putfile --zkFile /configs/ecommerce/rules.txt --file ./src/main/resources/sample_rules.txt\n\n```\n\nor to put a single file into a directory:\n\n```\njava -jar jackhanna.jar localhost:2181 put --zkPath /environment/config/log4j.xml --path ./src/main/resources/log4j.xml\n```\n\nPut a directory of files into Zookeeper:\n\n```\njava -jar jackhanna.jar localhost:2181 put --zkPath /environment/configs/resources --path ./src/main/resources\n```\n\n\nGet a single file from Zookeeper:\n\n```\njava -jar jackhanna.jar localhost:2181 get --zkPath /environment/config/log4j.xml --path /tmp\n```\n\nGet a directory of files from Zookeeper:\n\n```\njava -jar jackhanna.jar localhost:2181 get --zkPath /environment/configs/resources --path /tmp\n```\n\n## How to install on your system ##\n\nThere should be a `brew install jackhanna` but I haven't figured that out!  For now you need to check the code out and do:\n\n```\nmvn install\ncp ./bin/jackhanna /usr/local/bin\njackhanna --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo19s%2Fjackhanna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fo19s%2Fjackhanna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo19s%2Fjackhanna/lists"}