serialization - How to deserialize a Riak backup into a JSON? -


i have dumped riak db (back-up). backup file binary file. there lib deserialize human readable file (json w/e) ?

i haven't found on google, neither on stack overflow.

found solution current problem:

connect env , run following command:

  wget https://s3-us-west-2.amazonaws.com/ps-tools/riak-data-migrator-0.2.9-bin.tar.gz   tar -xvzf riak-data-migrator-0.2.9-bin.tar.gz   cd riak-data-migrator-0.2.9   java -jar riak-data-migrator-0.2.9.jar -d -r /var/riak_export -a -h 127.0.0.1 -p 8087 -h 8098 

(source: https://github.com/basho-labs/riak-data-migrator)

edit way export riak db https://www.npmjs.com/package/riak-bucket-exporter

  #!/bin/bash    bucket in $(curl http://localhost:8098/riak?buckets=true | sed -e 's/[{}:"]//gi' -e 's/buckets\[//' -e 's/\]//' -e 's/,/ /g')       echo "exporting bucket $bucket"     rm -f $bucket.json     riak-bucket-exporter -h localhost -p 8098 $bucket   done    echo "export done" 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -