Error trying to launch Riak

2012-09-14 Thread Chris Hicks
Hello everyone, I was following the Riak Fast Track and setting up a dev environment and ran into a problem I am having trouble solving so far. When I try to run ./riak start I'm getting a generic error saying there was an "Error" reading the app.config file. I've navigated there via an Erla

RE: missing keys?

2012-09-14 Thread Pat Lynch
Hi Alexander, Ok, I'll change the dw settings and see what the throughput is like. Obviously setting the 'sync' option will also kill performance after that.. I'm hoping to get back to Riak Monday or Tuesday. thanks again, Pat. Subject: Re: missing keys? From: sicul...@gmail.com Date: Fri,

Re: missing keys?

2012-09-14 Thread Alexander Sicular
"Lazy writing of the data is not really an option for what we need." Then I would say dw should equal n (dw=3 in your case) which would ensure that all data is on disk. Try rerunning your tests with that configuration. This should negatively affect performance though. -Alexander Sicular @sicul

RE: missing keys?

2012-09-14 Thread Pat Lynch
Hey Alexander, thanks for the response. Yup - I'm a Riak newbie for sure :). I have replication set to 3 on the cluster. So, if dw=2, is it durable or not? even if it's durable across vnodes. If it is durable across vnodes, then it should be queryable? One of the big considerations I have

Re: missing keys?

2012-09-14 Thread Alexander Sicular
Hi Pat, "thanks for that. Is the default on dw not also quorum though?? so, in my case it should be 2 (since I have 2 nodes)??" Consider the difference in the usage of the word "node." There is actually a large difference between two definitions of the commonly used word, "node." 1. node: vi

Re: Java map-reduce and result keys

2012-09-14 Thread Deepak Balasubramanyam
Thanks for the tip Russell. I managed to get this done. I have one more question and a suggestion. - Is the name keyData a misnomer in the mapping function -> function( value, keyData, arg) ? keyData is a String that carries the bucket name. The value object carries more information.

RE: missing keys?

2012-09-14 Thread Pat Lynch
Hi, thanks for that. Is the default on dw not also quorum though?? so, in my case it should be 2 (since I have 2 nodes)?? thanks, Pat. Date: Fri, 14 Sep 2012 12:11:25 -0400 Subject: Re: missing keys? From: rzeze...@basho.com To: plynch1...@hotmail.com CC: s...@basho.com; riak-users@lists.basho

Re: missing keys?

2012-09-14 Thread Ryan Zezeski
Pat, On Fri, Sep 14, 2012 at 11:08 AM, Pat Lynch wrote: > > > So, if I write a key to a cluster and then try to query that key, it may > not find it unless I retry? Even if r=2 & w=2 ? I thought that at least 2 > systems had to have that key (either in memory or disk) for the write to > have su

RE: missing keys?

2012-09-14 Thread Pat Lynch
Hi Reid, thanks for that - I'll read up on those links. thanks again, Pat. Subject: Re: missing keys? From: reiddra...@gmail.com Date: Fri, 14 Sep 2012 11:09:01 -0400 CC: plynch1...@hotmail.com; riak-users@lists.basho.com To: s...@basho.com Pat, Adding to what Sean said, Riak also offers some mo

Re: missing keys?

2012-09-14 Thread Reid Draper
Pat, Adding to what Sean said, Riak also offers some more fine-grained controls around when replicas return 'notfound'. In your case, using `{notfound_ok, false}` and `{basic_quorum, false}` might help as well. You can see them documented more here [1]. Unfortunately the Python client doesn't s

RE: missing keys?

2012-09-14 Thread Pat Lynch
Hi Sean, thanks for the very quick response :) - much appreciated. No, I didn't put any retries in the code at all. So, if I write a key to a cluster and then try to query that key, it may not find it unless I retry? Even if r=2 & w=2 ? I thought that at least 2 systems had to have that key

Re: missing keys?

2012-09-14 Thread Sean Cribbs
Pat, Does your test use retries when it gets "not found" responses? You might not encounter that small % of missing keys if you retry at least once when they are missing. Because of the eventually consistent design of Riak, writes you make might not be readable immediately. On Fri, Sep 14, 2012 a

missing keys?

2012-09-14 Thread Pat Lynch
Hi all, I was just wondering if you could give me some feedback on my usage of RIAK. I'm currently testing a number of datastores and am trying to come up with pros/ cons of each. I have a variety of tests (write speed 1 client, write speed 10 clients, read speed 1 client, read speed 10 clien

Re: MapReduce request causes Erlang VM to close

2012-09-14 Thread Staffan Einarsson
Ian, I use the prebuilt package of Riak 1.2.0 for Ubuntu Precise. I think I've got some more information now. The problem seems to show up when using the ejsLog() function from a MapReduce JS phase function. It has already been reported once here: https://github.com/basho/riak/issues/209 I have

Re: Java map-reduce and result keys

2012-09-14 Thread Russell Brown
On 14 Sep 2012, at 14:24, Deepak Balasubramanyam wrote: > Hi, > > I've written a map reduce query on the riak java client like so... > > client.mapReduce(BUCKET).addKeyFilter(keyFilter) > .addLinkPhase(BUCKET, "_", false) > .addMapPhase(new NamedJSFunctio

Re: MapReduce request causes Erlang VM to close

2012-09-14 Thread Ian Plosker
Staffan, Are you using a Basho provided package or did you build from source? -ian On Thursday, 13 September 2012 at 15:42, Staffan Einarsson wrote: > Ian: > > Actually, yes there is: http://pastebin.com/N3zh9fc7 > > It seems at the end that something fails in the JavaScript driver. Tha

Java map-reduce and result keys

2012-09-14 Thread Deepak Balasubramanyam
Hi, I've written a map reduce query on the riak java client like so... client.mapReduce(BUCKET).addKeyFilter(keyFilter) .addLinkPhase(BUCKET, "_", false) .addMapPhase(new NamedJSFunction("Riak.mapValuesJson"), false) .addReducePhase(phas