Help with local restore for dev enviroment

2013-07-09 Thread Mark Wagner
Hey all,

I'm new to riak and I'm working on an ETL script that needs to pull data
from a riak cluster.

My client has sent me a backup from one of their cluster nodes. bitcask
data,. rings and config.

Here is what I am doing:   on OSX

# Install riak on my local OSX development box
brew install riak

#goto the default data directory setup by brew
cd ~/Developer/Cellar/riak/1.3.1-x86_64/libexec/data/

# create a bitcask directory and copy the bitcask data into it
mkdir bitcask
cd bitcask
cp -r ~/Downloads/riak/var/lib/riak/bitcask/* ./

#goto the ring directory and copy the ring data into it
cd ../ring
cp -r ~/Downloads/riak/var/lib/riak/ring/* ./

#goto the etc directory, delete pem files, copy over the pem files from
backup
cd ../../etc/
rm *.pem
cp ~/Downloads/riak/etc/riak/*.pem ./

I do not believe I need to make any changes to the default vm.args or
app.config files installed by brew.

#run the riak-admin reip command since the hostname is different
riak-admin reip r...@staging1.sjc1.x.net riak@127.0.0.1

At this point I believe I should be able to start riak and browse the data.
  Is this correct?
How can I verify, that riak see's the data?
I have no idea of the structure of the data how can I determine the
structure?

Thanks for your help,

Mark






-- 
Mark Wagner, Web & Mobile Developer
*:coderow*
*Web & mobile application development for business*
m: 480.580.1261 | o: 612.293.9090
www.coderow.com |
m...@coderow.com<https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=m...@coderow.com>
 | @thesociableme
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Help with local restore for dev enviroment

2013-07-10 Thread Mark Wagner
Thanks for the info!!!  I appreciate the help and I am glad to know that it
should just work!

I don't really need the data from the whole cluster while developing the
script.  I just need to get my queries working etc...

One issue I am facing is I don't know the structure of the data.  So I am
trying to browse it (http://localhost:8098/riak?buckets=true)  and I
getting content decode  error.

Any ideas?  thoughts on how to troubleshoot this?  Or different approaches
to determining the structure?


Thanks AGAIN!!!


Mark


On Wed, Jul 10, 2013 at 7:59 AM, Justin Sheehy  wrote:

> Hi, Mark.
>
> You've already received a little advice generally so I won't pile on that
> part, but one thing stood out to me:
>
> > My client has sent me a backup from one of their cluster nodes. bitcask
> data,. rings and config.
>
> Unless I'm misunderstanding what you're doing, what you're working on will
> not get you the data from the whole cluster, but the fraction of the data
> that was stored on the one node that you have a backup from. Just a
> warning, in case you hadn't realized this.
>
> -Justin
>
>
>


-- 
Mark Wagner, Web & Mobile Developer
*:coderow*
*Web & mobile application development for business*
m: 480.580.1261 | o: 612.293.9090
www.coderow.com | m...@coderow.com | @thesociableme
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Help... Something is wrong with my restore

2013-07-18 Thread Mark Wagner
Here is what I am doing:   on OSX

# Install riak on my local OSX development box
brew install riak

riak start
riak-admin test
Successfully completed 1 read/write cycle to 'riak@127.0.0.1'
riak stop

#goto the default data directory setup by brew
cd ~/Developer/Cellar/riak/1.3.1-x86_64/libexec/data/bitcask/

# create a bitcask directory and copy the bitcask data into it
cp -r ~/Downloads/riak/var/lib/riak/bitcask/* ./


riak start
riak-admin test
Failed to read test value: {error,{insufficient_vnodes,0,need,1}}


I thought bitcask data just need to be copied in... and it would work??



-- 
Mark Wagner, Web & Mobile Developer
*:coderow*
*Web & mobile application development for business*
m: 480.580.1261 | o: 612.293.9090
www.coderow.com | m...@coderow.com | @thesociableme
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com