Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update a file in zookeeper with zkcli

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

like image 450
nick_v1 Avatar asked Oct 03 '22 00:10

nick_v1


1 Answers

You can't do that with the standard zookeeper cli. You can do that with zk_shell. From their readme,

(CONNECTED) /> cp file:///etc/passwd zk://localhost:2181/passwd
like image 187
sbridges Avatar answered Oct 07 '22 19:10

sbridges