Re: node data migration

2010-05-04 Thread Sean Cribbs
Sorry, I misunderstood our devs. That feature is planned but has not been pushed to tip yet. In the meantime, you can use Grant's strategy. Sean Cribbs Developer Advocate Basho Technologies, Inc. http://basho.com/ On May 4, 2010, at 5:12 PM, Matthew Pflueger wrote: > Maybe I'm missing someth

Re: node data migration

2010-05-04 Thread Matthew Pflueger
Maybe I'm missing something but the riak-admin script does not support the leave command... --Matthew On Tue, May 4, 2010 at 17:05, Sean Cribbs wrote: > Also, if you're certain you want it to relinquish its data before shutting > down, use 'riak-admin leave'.  It will then proceed to handoff

Re: SlideBlast - where are the actual pdf files stored?

2010-05-04 Thread Rusty Klophaus
Hi Norman, You would need to modify SlideBlast to store the original file in Riak, and then read the file from Riak and send it to the user. Best, Rusty On Tue, May 4, 2010 at 5:05 PM, Norman Khine wrote: > hi rusty, thanks for the reply. if for example, i wanted to provide a > link for downlo

Re: node data migration

2010-05-04 Thread Grant Schofield
There would be 2 ways to such an upgrade. You could backup the node and shut it down cleanly. Other nodes in the cluster will take over for the shutdown node as long as your R, N , and W values were able to cope with the change. If you make a copy of your data directory, including the ring and

Re: node data migration

2010-05-04 Thread Sean Cribbs
Also, if you're certain you want it to relinquish its data before shutting down, use 'riak-admin leave'. It will then proceed to handoff all of its keys to other nodes and then cleanly shut down. With 1GB of data this could take a while, however. Sean Cribbs Developer Advocate Basho Technolo

Re: SlideBlast - where are the actual pdf files stored?

2010-05-04 Thread Norman Khine
hi rusty, thanks for the reply. if for example, i wanted to provide a link for download of the actual pdf how would this be implemented? On Tue, May 4, 2010 at 10:29 PM, Rusty Klophaus wrote: > Hi Norman, > For simplicity, SlideBlast uses the filesystem backend by default. The > filesystem backen

Re: node data migration

2010-05-04 Thread Sean Cribbs
'riak stop' will only shutdown the node cleanly - it will not relinquish that node's portion of the ring. However, you should be able to safely take it down, upgrade your OS and restart the node. Hinted handoff will ensure that, when it comes back up, it receives the data it missed while down.

Re: SlideBlast - where are the actual pdf files stored?

2010-05-04 Thread Rusty Klophaus
Hi Norman, For simplicity, SlideBlast uses the filesystem backend by default. The filesystem backend stores each Riak object in a separate file. So in the directory listing to which you linked, many of those files contain the actual uploaded files. Best, Rusty On Tue, May 4, 2010 at 4:16 PM, Nor

SlideBlast - where are the actual pdf files stored?

2010-05-04 Thread Norman Khine
Hello, I have just installed the demo SlideBlast and is working really nicely. Can someone tell me where are the actual files stored? in the directory i have: http://paste.lisp.org/+248E/1 thanks norman -- ¿noʎ uɐɔ uʍop ǝpısdn ǝʇıɹʍ uɐɔ ı - %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr

Re: node data migration

2010-05-04 Thread Matthew Pflueger
Scenario: I need to upgrade the OS of my nodes in my cluster which will result in a reboot of each node. What would be the process to nicely migrate data away from each node? If my understanding is correct, performing a nice shutdown of a riak node via `riak stop` will migrate the data away from

Re: Setting read quorum for map reduce jobs

2010-05-04 Thread Johnathan Loggie
Hi, OK Thanks, I thought as much. Its was more of an academic question really. Johnno On 04/05/2010 15:27, "Sean Cribbs" wrote: > The read quorum doesn't apply to map-reduce - the value from the first vnode > in the preflist will be tried, followed by the others if it is not available. > If a

Re: Setting read quorum for map reduce jobs

2010-05-04 Thread Sean Cribbs
The read quorum doesn't apply to map-reduce - the value from the first vnode in the preflist will be tried, followed by the others if it is not available. If an input is completely unavailable (as may be the case with 1/2 of the nodes down), the job will fail. 2 nodes is a bit of degenerate ca

Setting read quorum for map reduce jobs

2010-05-04 Thread Johnathan Loggie
Hi, I¹m struggling to find how to set the the read quorum for a map reduce job via the REST api. The documentation doesn¹t mention that this is even possible. I¹m using ripple, and tried forcing r=1 onto the end of the query string (e.g with @client = Riak::Client.new(:mapred = Œ/mapred?r=1¹)) to

Re: keys=stream

2010-05-04 Thread Sean Cribbs
This looks like a bug. I'll add an issue to the github tracker. Sean Cribbs Developer Advocate Basho Technologies, Inc. http://basho.com/ On May 4, 2010, at 9:29 AM, Adam Hunter wrote: > Just curb, I couldn't get net/http to work when doing chunked (something > about read_body being called twi

Riak Recap for 5/3

2010-05-04 Thread Mark Phillips
Morning All - Just one orphaned question from IRC for today's recap. Best, Mark Mark Phillips Community Manager wiki.basho.com twitter.com/pharkmillups -- Riak Recap for 5/3 1) Q --- When defining javascript map/reduce jobs as a document in Riak is the performance as good as using a bui

Re: keys=stream

2010-05-04 Thread Adam Hunter
Just curb, I couldn't get net/http to work when doing chunked (something about read_body being called twice). On May 4, 2010, at 9:28 AM, Sean Cribbs wrote: > Are you using curb or net/http? > > Sean Cribbs > Developer Advocate > Basho Technologies, Inc. > http://basho.com/ > > On May 4, 201

Re: keys=stream

2010-05-04 Thread Sean Cribbs
Are you using curb or net/http? Sean Cribbs Developer Advocate Basho Technologies, Inc. http://basho.com/ On May 4, 2010, at 9:26 AM, Adam Hunter wrote: > The problem I was running into was some of the chunks were only part of the > json object. Decoded it would be something like this: > > c

Re: keys=stream

2010-05-04 Thread Adam Hunter
The problem I was running into was some of the chunks were only part of the json object. Decoded it would be something like this: chunk 1: {'keys':[1,2,3,4 chunk 2: 5,6,7,8,9]} I was running this on a bucket with about 11k keys. Using ripple I could only get about 150 keys back this way becau

Re: keys=stream

2010-05-04 Thread Sean Cribbs
This behavior is unchanged since its implementation in 0.8 or 0.9. To better demonstrate what that statement means, here's the joined output of a streamed keys response: {"props":{"name":"foo","n_val":3,"allow_mult":false,"precommit":[],"postcommit":[],"chash_keyfun":{"mod":"riak_core_util","fu

Re: using ripple head

2010-05-04 Thread Sean Cribbs
Yes, there will be an announcement. We have a few internal apps using Ripple, but also I will be writing one for my training class this week. It'll probably go up on github and bitbucket. On Tuesday, May 4, 2010, francisco treacy wrote: > Thanks Sean! > > So I assume these new gems will get the a

Re: using ripple head

2010-05-04 Thread francisco treacy
Thanks Sean! So I assume these new gems will get the associations functionality... and that an announcement will be made in the mailing list. Do you know of the existence of any Ripple sample apps? Francisco 2010/5/4 Sean Cribbs : > Francisco, > > At the request of a number of users, I have be

Re: using ripple head

2010-05-04 Thread Sean Cribbs
Francisco, At the request of a number of users, I have been splitting it into two gems - the main reason being the ability to support Rails 2.3.5. It should be complete later this week. When it's complete, I will issue new gems. Sean Cribbs Developer Advocate Basho Technologies, Inc. http://

using ripple head

2010-05-04 Thread francisco treacy
Hi all, I am using Ripple in a project - but i couldn't figure out how to set links. I presume it's because I was using 0.6.1 and the "associations" had not been merged yet? So if I add to my Gemfile gem "ripple", "0.6.1", :git => "git://github.com/seancribbs/ripple.git" (0.6.1 is defined beca