Re: Javascript MapReduce fails Erlang succeeds

2013-08-19 Thread Doug Read
I noticed the value in some of the json fields have the single quotes and double quotes, is it possible they aren't being correctly escaped when being passed to spidermonkey? On Mon, Aug 19, 2013 at 5:33 PM, Chris Meiklejohn wrote: > Hello Doug, > > I've verified that the problem is not related

Re: Simple explanation for 2i using the Java Client

2013-08-19 Thread Brian Roach
If you were to actually try it, you'd find it throws an exception telling you we don't support array types with the @RiakIndex annotation. You need: @RiakIndex(name = "cars") private Set cars; and adjust things accordingly. At that point, if I understand your question, yes - your index query woul

Re: Javascript MapReduce fails Erlang succeeds

2013-08-19 Thread Chris Meiklejohn
Hello Doug, I've verified that the problem is not related to that particular parsing function, as the following JavaScript MapReduce code will trigger the exception: { "map": {"language": "javascript", "source": "function(value, keyData, arg) { return [value]; }" } Specifically, what's happening

Re: Javascript MapReduce fails Erlang succeeds

2013-08-19 Thread Chris Meiklejohn
Hi Doug, Can you shoot over the multi get job you are using? - Chris On Mon, Aug 19, 2013 at 4:11 PM, Doug Read wrote: > Hi Chris, > > I appreciate the help. Please let me know if I can help in anyway. For > now I just switched to a "multi" get. > > thanks > doug > > > On Mon, Aug 19, 2013

Re: Data Replica algortihm

2013-08-19 Thread Andrew Thompson
On Mon, Aug 19, 2013 at 04:03:25PM -0300, João Machado wrote: > Hi all, > > Anyone knows how the algorithm responsible for choosing where the data > replica is stored works? > > Is possible to customise (or configure) it to ensure that the data will be > in different physical nodes (or even physi

Re: Javascript MapReduce fails Erlang succeeds

2013-08-19 Thread Doug Read
Hi Chris, I appreciate the help. Please let me know if I can help in anyway. For now I just switched to a "multi" get. thanks doug On Mon, Aug 19, 2013 at 4:09 PM, Chris Meiklejohn wrote: > Hi Doug, > > After loading your backup, I can trigger the crash through the JavaScript > map/reduce jo

Re: Javascript MapReduce fails Erlang succeeds

2013-08-19 Thread Chris Meiklejohn
Hi Doug, After loading your backup, I can trigger the crash through the JavaScript map/reduce job. However, if I do the following: {ok, Client} = riak:local_client(). {ok, O} = Client:get(<<"BUCKET">>, <<"KEY">>). both of these calls succeed: js_mochijson2:decode(riak_object:get_values(O)). mo

Re: error with fresh riak-cs 1.4.0 install

2013-08-19 Thread Reid Draper
Excellent, happy to hear you got things running. Reid On Aug 19, 2013, at 4:24 PM, Tim Froehlich wrote: >> Make sure you're adding the default bucket properties to the `riak_core` > section of the app.config. > > I believe it was in there. I've got it working now, I ended up starting with > a

Re: error with fresh riak-cs 1.4.0 install

2013-08-19 Thread Tim Froehlich
>Make sure you're adding the default bucket properties to the `riak_core` section of the app.config. I believe it was in there. I've got it working now, I ended up starting with a fresh VM and following the instructions[1] exactly this time, instead of testing to see if Riak worked first. [1]ht

Re: Riak Erlang client documentation

2013-08-19 Thread Sean Cribbs
Hi Michal, Sorry for the delay, it has just been updated. On Mon, Aug 19, 2013 at 3:04 PM, Michał Ptaszek wrote: > Hi, > > are there any plans for keeping the Erlang edoc page up-to-date with the > current state of the library (http://basho.github.io/riak-erlang-client/)? > Current version see

Re: error with fresh riak-cs 1.4.0 install

2013-08-19 Thread Reid Draper
On Aug 19, 2013, at 12:54 PM, Tim Froehlich wrote: > Reid, I had the same problem that Brian had but I'm not having any luck > getting past it. I had added the default_bucket_props option, but I had > already created some buckets ahead of time. Created buckets in Riak or Riak CS? For what it's

Riak Erlang client documentation

2013-08-19 Thread Michał Ptaszek
Hi, are there any plans for keeping the Erlang edoc page up-to-date with the current state of the library (http://basho.github.io/riak-erlang-client/)? Current version seems to be pretty old (Generated by EDoc, Nov 1 2012, 15:19:50): the latest API is not in sync with what we have in 1.4.1 tag. C

Re: Data Replica algortihm

2013-08-19 Thread Alexander Sicular
There are degrees of possibilities. Look for references to chash, aka circular/consistent hash, which currently hashes the bucket/key pair against the number of vnodes in the cluster. -Alexander @siculars http://siculars.posthaven.com Sent from my iRotaryPhone On Aug 19, 2013, at 15:03, Joã

Data Replica algortihm

2013-08-19 Thread João Machado
Hi all, Anyone knows how the algorithm responsible for choosing where the data replica is stored works? Is possible to customise (or configure) it to ensure that the data will be in different physical nodes (or even physical racks) like Cassandra does? []'s [image: Ideais Tecnologia] *João M

Re: Riak Memory Bloat issues with RiakCS/BitCask

2013-08-19 Thread Alexander Sicular
Just stop there. You got all your replicas (and fd's) on one machine. Get at least 3 nodes in your cluster. -Alexander @siculars http://siculars.posthaven.com Sent from my iRotaryPhone On Aug 18, 2013, at 19:32, Idan Shinberg wrote: > We have a ~300GB Riak Single Node Cluster _

Re: error with fresh riak-cs 1.4.0 install

2013-08-19 Thread Tim Froehlich
Reid, I had the same problem that Brian had but I'm not having any luck getting past it. I had added the default_bucket_props option, but I had already created some buckets ahead of time. The list buckets command returns three of them, and I've manually set allow_mult on all of them and confirmed t

Simple explanation for 2i using the Java Client

2013-08-19 Thread rsb
I am having a bit of a hard time finding resources that explain 2i specifically with the Riak Java Client. Would anyone be kind enough to point me to a straightforward example that I will be able to expand from. Assuming the following object: How can I create a secondary index on the cars that

Re: VS Sample help

2013-08-19 Thread Jeremiah Peschka
Hi Brad, Could you post your app.config in a gist, pastebin, or something else? You'll also need to make sure Riak is listening on that IP address in the app.config file. For example, if you were using an unsafe configuration, the app.config might look like this: {pb, [ {"0.0.0.0", 10017 } ]} Th

VS Sample help

2013-08-19 Thread brad.laptop
Hello I just got my Sent from Windows Mail___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

VS Sample help

2013-08-19 Thread brad.laptop
Hello I just got 2 VMs’ setup and can access via http but cannot get the samples to work. My riak app.config -name is set as riak@192.168.0.71 and .73 respectfully and running the Sample proj just takes for ever to ping i.e. a few minutes. Eventually it fails at the assert. My app.config

Re: Riak CS Questions

2013-08-19 Thread James Jackson
Thanks Hector for the clarification, what I needed to know. James On 19 Aug 2013, at 14:56, Hector Castro wrote: > Hi James, > > Although it is possible to interact with Riak and Riak CS on same > cluster, we'll generally recommend that you use one Riak cluster to > back CS and another for sta

Re: Riak CS Questions

2013-08-19 Thread Hector Castro
Hi James, Although it is possible to interact with Riak and Riak CS on same cluster, we'll generally recommend that you use one Riak cluster to back CS and another for standard Riak usage. You can store any application data in Riak CS. Just be aware that you'll lose some of the query mechanisms R

Riak CS Questions

2013-08-19 Thread James Jackson
Hi Everyone, I was wonder firstly if you could run Riak for application data and Riak CS on the same production cluster or would you need two independent clusters? Also could you use Riak CS for your application data? I think that I would need to run Riak and Riak CS on independent clusters and

Re: 2i, search or something else for most efficient "range" lookup

2013-08-19 Thread Jon Meredith
How can you guarantee it's only a single object you'll find? If you know an event happens every X minutes but don't know the exact start/stop times, you could truncate the startVal/endVal to the level of precision you need, hit that directly first and probe either side if you don't find it. If I

Re: view total number of workers being used?

2013-08-19 Thread Bhuwan Chawla
Occasionally, we hit an error, indicating "worker_limit" reached. I've increased that value ,but it would be nice to have a way to monitor the current # of workers used On Wed, Aug 14, 2013 at 12:52 PM, Mark Phillips wrote: > Hey Bhuwan, > > > On Wed, Jul 31, 2013 at 10:38 AM, Bhuwan Chawla wr