Thanks Heath, The tool is very neat as a swapper to Zookeeper commands. Currently, I have a shell script, running an infinite loop to do something. I want to monitor the script by using Zookeeper Ephemeral node (the shell script will create a node on Zookeeper tree, continuous to heartbeat, and the node will disappear when the script terminates). From the git repo you referred, I find a lot of useful commands and samples, but no Ephemeral node related functionalities?
regards, Lin On Sun, May 3, 2015 at 1:41 PM, B. Heath Robinson <[email protected]> wrote: > Check out https://github.com/rgs1/zk_shell > On Sun, May 3, 2015 at 00:28 Lin Ma <[email protected]> wrote: > > > Hello Zookeeper masters, > > > > We have a shell script (has an infinite loop, and will always run) on > > Linux, and want to use Zookeeper to monitor whether the script is live, > and > > using Ephemeral node is a natural choice, and I have found it is easier > to > > integrate with Java as existing API, and wondering how to integrate with > a > > shell script? Any samples is appreciated. > > > > > > > http://zookeeper.apache.org/doc/trunk/zookeeperOver.html#Nodes+and+ephemeral+nodes > > > > Thanks in advance, > > Lin > > >
