Update a file in zookeeper with zkcli

Viewed 4449

how do I update a file with zkCli without any third party tools? I can't seem to find any examples anywhere. I can connect to the zookeeper instance, create/delete nodes and etc... but can't figure out how to upload one file from the filesystem into it.

Thanks in advance

2 Answers

You can do it with a command like this:

./zkCli.sh set /solr/clusterstate.json "`cat import.json`"

This is run from the Zookeeper bin directory.

Related