zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Junqueira <fpjunque...@yahoo.com>
Subject Re: Howto use zkCli.sh with spaces in the data ?
Date Sat, 28 Dec 2013 19:05:26 GMT
Hi there,

I'm not aware of any jira issue open for this. If there isn't one already, then we could open
one and propose a fix. If you have time and interest, please feel free to work on a patch
for this, I would be happy to help out here.

-Flavio 


On Dec 28, 2013, at 5:28 PM, S├ękine Coulibaly <scoulibaly@gmail.com> wrote:

> 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
> payload.
> 
> From what I can see, this issuehas been raised several times (eg. here
> http://stackoverflow.com/questions/11408542/zookeeper-cli-read-znode-with-space
> and
> here
> http://zookeeper-user.578899.n2.nabble.com/Best-way-to-update-node-using-command-line-td7578581.html)
> 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


Mime
View raw message