Re: what about millions of buckets

2012-07-11 Thread Wu Ray
Thanks. what's more, I want to know if there is best practice for performance in this special situation, such as avoiding to do something, etc. On Wed, Jul 11, 2012 at 11:03 AM, Sean Cribbs wrote: > Note he said "secondary index", and yes installing the search hook on that > many buckets would c

return[{value.key : data}] problem

2012-07-11 Thread Venki Yedidha
Hi All, I am stuck with Riak group by using json object.. when I am returning some thing like this: return [value.key] or return[value.bucket].. It is going to reduce function and giving output.. But, when I try something like: return [{value.key : data}] It is throwing error

Re: return[{value.key : data}] problem

2012-07-11 Thread Yousuf Fauzan
What the reduce function that you are using? On Wed, Jul 11, 2012 at 4:02 PM, Venki Yedidha wrote: > Hi All, > >I am stuck with Riak group by using json object.. > > when I am returning some thing like this: > > return [value.key] or return[value.bucket].. > > It is going to reduce func

Re: return[{value.key : data}] problem

2012-07-11 Thread Yousuf Fauzan
I think I faced a similar problem a while back. To resolve this, I create a temporary dictionary and set the key, value like this: var res={}; res[key] = value; return [res]; Using something like var res={key:value}; also did not work, as far as I remember. Maybe others could shed some light on

Re: return[{value.key : data}] problem

2012-07-11 Thread Venki Yedidha
Hi Yousuf, Thanks, It worked for me. On Wed, Jul 11, 2012 at 4:15 PM, Yousuf Fauzan wrote: > I think I faced a similar problem a while back. > To resolve this, I create a temporary dictionary and set the key, value > like this: > > var res={}; > res[key] = value; > return [res]; > > Using som

send params to stored map function

2012-07-11 Thread Venki Yedidha
Hi All, I would like to know how I can pass json arguments to a function already stored under bucket/key..The map/reduce function is in javascript and I need to send parameters through php. Thanks, Venkatesh ___ riak-users mailing list riak-user

Re: send params to stored map function

2012-07-11 Thread Sean Cribbs
Venkatesh, You can pass them just as you would with any other map function, using the 'arg' parameter. Here's a PHP example: $mr->map(array("mybucket", "myfunction"), array("language" => "javascript", "arg" => "the extra argument to your JS function")) Just replace the RHS of the "arg" key with

Java client pool threading

2012-07-11 Thread Steve Warren
I've noticed that while using the java client library the jvm is not exiting when main completes. Is there a way to set the connection threads to daemon mode so they don't hang the jvm? Regards Steve ___ riak-users mailing list riak-users@lists.basho.com

Re: Java client pool threading

2012-07-11 Thread Brian Roach
Steve - Call the IRIakClient.shutdown() method when you're done with it - it'll kill the background threads. Thanks, Brian Roach On Jul 11, 2012, at 2:12 PM, Steve Warren wrote: > I've noticed that while using the java client library the jvm is not exiting > when main completes. Is there a

Re: Java client pool threading

2012-07-11 Thread Steve Warren
Thanks for the reply! That's what I did (I expose Riak as spring beans and so destroy on context shutdown). But why not set the threads to deamon mode since they're support threads and avoid the issue altogether? Is it just too deep in another library or some other concern I don't understand? On W

Re: Java client pool threading

2012-07-11 Thread Brian Roach
Steve - Honestly, don't know. I think I've had that thought at least once :) I've got a couple things that I'm working on at the moment that need to get done for the Riak 1.2 release, but when I get a chance I'll take a look at it and see if there's any harm. Thanks, Brian Roach On Jul 11,

Re: Java client pool threading

2012-07-11 Thread Steve Warren
Sounds great! Thanks Steve On Wed, Jul 11, 2012 at 1:42 PM, Brian Roach wrote: > Steve - > > Honestly, don't know. I think I've had that thought at least once :) > > I've got a couple things that I'm working on at the moment that need to > get done for the Riak 1.2 release, but when I get a cha

Cannot start riak

2012-07-11 Thread Lijun Wang
I am evaluating riak. On FreeBSD, I got, application_start_failure, os_mon when starting it. The issue is other than this how do I know what is really going on? Thanks, Lijun Sent from my iPhone ___ riak-users mailing list riak-users@lists.basho.com h

Re: Cannot start riak

2012-07-11 Thread Sean Carey
Lijun, Could you check the logs for errors, and send them to the list? Cheers, Sean On Wednesday, July 11, 2012 at 10:48 PM, Lijun Wang wrote: > I am evaluating riak. On FreeBSD, I got, application_start_failure, os_mon > when starting it. The issue is other than this how do I know what

Re: Cannot start riak

2012-07-11 Thread Parnell Springmeyer
You're not providing a whole lot of useful information. FreeBSD version, Riak version, etc… would help. I've been able to build Riak and LevelDB successfully on FreeBSD 8.x and 9.x; it all runs without a hitch. On Jul 11, 2012, at 9:48 PM, Lijun Wang wrote: > I am evaluating riak. On FreeBSD,

Re: Cannot start riak

2012-07-11 Thread Lijun Wang
Logs attached. From the crash dump:   =erl_crash_dump:0.1 Wed Jul 11 22:12:55 2012 Slogan: Kernel pid terminated (application_controller) ({application_start_failure,os_mon,{shutdown,{os_mon,start,[normal,[]]}}}) System version: Erlang R14B04 (erts-5.8.5) [source] [64-bit] [rq:1] [async-threads:6

reg. storageon Localfile system

2012-07-11 Thread Sangeetha.PattabiRaman2
Hi team, Iam very new to riak ,can anyone say on loading onto riak db 2 node cluster ...where does it puts the data on the Local file system.like we see on autosharding of mongodb or hadoop-hdfs over shards in the cluster mode as in which of riak F

Re: what about millions of buckets

2012-07-11 Thread Scott Lystig Fritchie
Wu Ray wrote: wr> Thanks. what's more, I want to know if there is best practice for wr> performance in this special situation, such as avoiding to do wr> something, etc. With Riak right now, the best choice is to avoid arbitrary bucket names and use a small (or one) bucket that can support the b

Re: reg. storageon Localfile system

2012-07-11 Thread Alexander Sicular
check your installations app.config file in the etc folder. @siculars http://siculars.posterous.com Sent from my rotary phone. On Jul 11, 2012 11:18 PM, wrote: > > > > > > > Hi team, > > > > Iam very new to riak ,can anyone say on loading onto riak > db 2 node cluster …where doe

RE: reg. storageon Localfile system

2012-07-11 Thread Sangeetha.PattabiRaman2
Thanks Sicular, Supervisor riak_core_vnode_sup had child undefined started with riak_core_vnode:start_link() at undefined exit with reason {timeout,{gen_server,call,[<0.1164.0>,stop]}} in context shutdown_error... trying to insert csv data of 434 MB onto 2 node riak clusteriam getting the

reg. storageon Localfile system

2012-07-11 Thread Sangeetha.PattabiRaman2
Thanks Sicular, Supervisor riak_core_vnode_sup had child undefined started with riak_core_vnode:start_link() at undefined exit with reason {timeout,{gen_server,call,[<0.1164.0>,stop]}} in context shutdown_error... trying to insert csv data of 434 MB onto 2 node riak clusteriam getting t