On 26 March 2016 at 12:19, Patrick Hunt <[email protected]> wrote: > I don't believe it's possible in the command line shell to create a > znode w/o some data because of the way the shell works (we should > probably fix that) however it is possible to do so using the API (e.g. > java) directly. >
zk-shell [0] does support this though: $ zk-shell 0 Welcome to zk-shell (1.1.0) (CONNECTING) /> (CONNECTED) /> create /ilovezk '' (CONNECTED) /> exists ilovezk Stat( czxid=28 mzxid=28 ctime=1459023613708 mtime=1459023613708 version=0 cversion=0 aversion=0 ephemeralOwner=0x0 dataLength=0 numChildren=0 pzxid=28 ) (CONNECTED) /> -rgs [0] https://github.com/rgs1/zk_shell > > Patrick > > On Fri, Mar 25, 2016 at 1:59 PM, s influxdb <[email protected]> wrote: > > What are the scenarios when dataLengths shows 0 when you do a stat on the > > znode > > > > I couldn't replicate it with zookeeper zkcli.sh or the zookeeper-cli tool > > > > Is it that can only be done via a zookeeper client libraries > > > > We have a znode in production that keeps showing showing no data for the > > parent znode > > > > [zk: xxx.com:2181(CONNECTED) 4] get /com > > > > cZxid = 0x10000022d > > ctime = Thu Oct 29 15:53:51 PDT 2015 > > mZxid = 0x10000022d > > mtime = Thu Oct 29 15:53:51 PDT 2015 > > pZxid = 0x10000022e > > cversion = 1 > > dataVersion = 0 > > aclVersion = 0 > > ephemeralOwner = 0x0 > > dataLength = 0 > > numChildren = 1 >
