zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ękine Coulibaly <scoulib...@gmail.com>
Subject Howto use zkCli.sh with spaces in the data ?
Date Sat, 28 Dec 2013 16:28:43 GMT
I wish I could use ZooKeeper to store json data.

My json data contains spaces, eg :

    {"country":"CA","name":"De La Salle"}

Issuing the following command to zkClient only stores
{"id":1,"fullname":"De which is wrong :

    create /contacts/1  {"country":"CA","name":"De La Salle"}

The store command seems to be croped after the first space of the data

>From what I can see, this issuehas been raised several times (eg. here
but I was unable to find a better workaround than "patch the java client by
yourself", so that the parameters are not splitted by a space.

Are there any plans to fix this (yes, I suggest this is some kind of bug"),
or a working "escaping" trick ?

Thank you

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message