Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-02 Thread Jacques
On Thu, Jun 2, 2011 at 3:44 PM, Russell Brown wrote: <> > Upon further reflection, I realized that base64 encoding wouldn't work > unless I stored the values that way single it reads the utf8 as strings > correctly . My plan is store my values directly as byte values. This is > easy with the pr

Key-Filters with logical AND operation and with tokenize

2011-06-02 Thread David Mitchell
I am trying to use the following Key-Filters with logical AND operation and tokenize, but I am getting errors. Anyone know what might be wrong? Is it possible to use tokenize with the logical AND? Erlang: R13B04 Riak: 0.14.2 Bucket: zip Key: 22305-0-1-3 The following does not work: {

Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-02 Thread Russell Brown
On 2 Jun 2011, at 19:43, Jacques wrote: > So the bug is-- using a map reduce job that 'includes' nonexistent bucket/key > causes an error. Correct? Yes: - if you attempt a map reduce via the pb interface (from any client) and the inputs include a [bucket, key] pair that don't exist you will g

Re: [RELEASE] Riak and Riak Search 0.14.2

2011-06-02 Thread David Leimbach
Excellent! Thanks! Congrats on the release btw! On Thu, Jun 2, 2011 at 9:37 AM, Sean Cribbs wrote: > David, > > Yes, that was fixed. riak_kv depends on erlang_js 0.6.1, which includes > the below commit: > https://github.com/basho/erlang_js/commit/ca95844eac704c0ad73fe34e33ae54e9fb9c39af > >

Re: Best practice for using erlang modules in riak?

2011-06-02 Thread Aphyr
On 06/02/2011 01:49 PM, Sylvain Niles wrote: Is there any open source code out there using erlang functions via ripple or rest that I can look at to see a fully functional flow? I made a lot of stupid mistakes getting this to work. Leaving add_paths commented out, not using arrays in arguments

Re: Best practice for using erlang modules in riak?

2011-06-02 Thread Sylvain Niles
Thanks for responding Dan, that's a great trick for getting the right stuff from ripple to try from curl. Unfortunately I had manually constructed the same job and tried it from curl with the same result. If I: 1. Manually do the map only, I get the right output. 2. Take that output (in JSON forma

Re: Best practice for using erlang modules in riak?

2011-06-02 Thread Sean Cribbs
> > a. Any documentation that shows how to properly deploy your erlang > code with the riak cluster (I'm currently writing a module, storing it > with riak_core, adding it to riak_core.app, and it's building fine, > can call it from riak console.) http://wiki.basho.com/Configuration-Files.html#ad

Re: Best practice for using erlang modules in riak?

2011-06-02 Thread Dan Reverri
Have you tried submitting the map reduce job directly against the HTTP API using a tool like curl? You can get an idea of what the body should look like by outputting the JSON representation of the Ripple MapReduce object: puts Riak::MapReduce.new(Ripple.client).add(a-bucket').map("function(v){re

Re: Best practice for using erlang modules in riak?

2011-06-02 Thread Sylvain Niles
So I've had a few helpful emails, but unfortunately I'm about to write my own erlang HTTP server to call my erlang M/R functions because even examples from the contrib section of the wiki just don't work. My last plea for help before we look at writing a replacement for Riak's REST API: a. Any do

Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-02 Thread Jacques
So the bug is-- using a map reduce job that 'includes' nonexistent bucket/key causes an error. Correct? I assumed that we would get a "not found" response back same as with the rest interface and thus assumed by encoding was what was causing the problem. My mistake. Upon further reflection, I r

Re: Riak KV ETS Backend?

2011-06-02 Thread Jordan West
Mark, Thanks for the reply. I saw couple other postings related to the ETS backend on the list so I decided to start prototyping a bit with it but I haven't decided if its the solution I'm looking for yet. I'll see you tuesday at the IGN offices for the meetup. Jordan On Thu, Jun 2, 2011 at 9:58

Re: Riak KV ETS Backend?

2011-06-02 Thread Mark Phillips
Hey Jordan, To address a few of your questions: While it's not the most optimal memory-only backend, ETS is certainly usable in production. That said, if it runs out of gas on you at larger scales, it wouldn't be that hard to write a better one using the NIF interface. Hope that helps. Mark O

Re: [RELEASE] Riak and Riak Search 0.14.2

2011-06-02 Thread Sean Cribbs
David, Yes, that was fixed. riak_kv depends on erlang_js 0.6.1, which includes the below commit: https://github.com/basho/erlang_js/commit/ca95844eac704c0ad73fe34e33ae54e9fb9c39af Sean Cribbs Developer Advocate Basho Technologies, Inc. http://basho.com/ On Jun 2, 2011, at 12:28 PM, David Lei

Re: [RELEASE] Riak and Riak Search 0.14.2

2011-06-02 Thread David Leimbach
I didn't see the fix listed for Javascript JSON parsing with newlines? Are we still expected to fix this on our own? I learned about this issue on the mailing list and the fix, but I'm not sure I ever was able to find a bug number. Dave On Wed, Jun 1, 2011 at 3:33 PM, Mark Phillips wrote: > H

Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-02 Thread Russell Brown
Hi Jaques, Where to start...hm. On 2 Jun 2011, at 02:47, Jacques wrote: > I'm using Java and looking to replicate multi-get using a map-only job per > everyone's recommendation. > > My bucket and key names are binary values, not strings. > > I attempted to run a map reduce job using a json in