Help - Riak pbc java client

2011-05-18 Thread Christina Boumpouka
Hello, I am trying to use the pbc java client and I have written a small test client (that performs simple store/fetch/delete operations) using eclipse. When I try to run it, eclipse's console doesn't terminate (the operations are performed without any errors), is this expected behaviour? Any chan

Re: Help - Riak pbc java client

2011-05-18 Thread Vlatko Basic
Hi Christina, Just put System.exit(0); as the last line. Some threads are still running and are not terminated unless you call the above exit() function. vlatko Original MessageĀ  Subject: Help - Ria

Riak Search returns None if wildcard query shorter than 2 chars

2011-05-18 Thread Vlatko Basic
Hi, I've made a "riak_test" bucket and inserted following: Key| JSON data bckt.insert("test0","{\"Src\":\"pen\", \"Trg\":\"cat\"}"); bckt.insert("test1","{\"Src\":\"penrose\", \"Trg\":\"caterpillar\"}"); bckt.insert("test2","{\"Src\":\"pending\", \"Trg\":\"

Re: Help - Riak pbc java client

2011-05-18 Thread Ryan Kennedy
On Wed, May 18, 2011 at 7:48 AM, Vlatko Basic wrote: > Just put > > System.exit(0); > > as the last line. Some threads are still running and are not terminated > unless you call the above exit() function. If you're running embedded in an application server like Tomcat you don't really have the Sy

Re: Riak Search returns None if wildcard query shorter than 2 chars

2011-05-18 Thread Vlatko Basic
Hi, Just found out that this is an already reported bug in RiakSearch. vlatko Hi, I've made a "riak_test" bucket and inserted following: Key | JSON data bckt.insert("test0","{\"Src\":\"pen\", \"Trg\":\"cat\"}"); bckt.insert("test1","{\"Src\":\"penrose\", \"Trg\":\"caterpillar\"}"); bckt.inse

Rebar and env

2011-05-18 Thread Mike Oxford
I do not see a facility in Rebar to pass variables through to the command line after a generate. The .app file is transient (will be destroyed and rebuilt on a clean), and generating nodes kinda needs -f which blows stuff away there too. I need to pass an option to gproc to turn on gproc_dist and

Re: Help - Riak pbc java client

2011-05-18 Thread Russell Brown
On 18 May 2011, at 11:22, Ryan Kennedy wrote: > On Wed, May 18, 2011 at 7:48 AM, Vlatko Basic wrote: >> Just put >> >> System.exit(0); >> >> as the last line. Some threads are still running and are not terminated >> unless you call the above exit() function. > > If you're running embedded i

Re: Rebar and env

2011-05-18 Thread Anthony Molinaro
Can't you have something in your src directory like foo.app.src which is what the ebin/foo.app is generated from? Then you put whatever you want in there? -Anthony On Wed, May 18, 2011 at 12:23:20PM -0700, Mike Oxford wrote: > I do not see a facility in Rebar to pass variables through to the c

Re: Capacity planning page clarification

2011-05-18 Thread Mark Phillips
Hey mox, Thanks for the feedback. Exactly what we were looking for. I just created a new issue [1] for it on the Riak Wiki repo to make sure we get this stuff incorporated if it makes sense. As always, pull requests are encouraged :) Keep it coming. Mark 1 - https://github.com/basho/riak_wiki/i

Old values on put call

2011-05-18 Thread Anthony Molinaro
Hi, I'm working on an application where I am storing an erlang external term format in riak. The entire structure gets updated at once, but I'd like to see what is changing, so I have something like this (in pseudo code). NewObject = construct_new(...), OldObject = riak_pb_socket:get(...), ok

Re: Rebar and env

2011-05-18 Thread Mike Oxford
Yes, you are correct. I completely forgot about the baseline file. Back to my hole...and thank you. -mox On Wed, May 18, 2011 at 2:11 PM, Anthony Molinaro < antho...@alumni.caltech.edu> wrote: > Can't you have something in your src directory like > > foo.app.src > > which is what the ebin/foo.

Re: Rebar and env

2011-05-18 Thread Mike Oxford
Perhaps I spoke too soon. :) 'rebar compile' will nuke the ebin/.app file. Setting the {env, []} setting inside this file and then generating (or in the srv/.app.src file) and it does not get passed down to the actual vm. {env, [{gproc, "gproc_dist 'all'"}]} does not work {env, [{gproc, 1}]} do

Re: Rebar and env

2011-05-18 Thread Mike Oxford
To close the loop on this for the archives application:get_all_env() returns [] ... application:get_all_env() does show the registrations. {env, []} entries are being set in the "rel//releases//.script" file. I'm still working through getting gproc to actually work as gproc_dist but happily reba

Re: MapReduce with Haskell

2011-05-18 Thread Nick Partridge
The haskell client has now been patched to fix this problem, which boiled down to it not consuming all the phases produced in a job. The new interface to mapReduce is here: https://github.com/mailrank/riak-haskell-client/blob/master/src/Network/Riak/Basic.hs#L142 Cheers to Brian for his swift app

Riak Recap For May 16 - 17

2011-05-18 Thread Mark Phillips
Early Evening, Morning, Afternoon to All - For today's Recap: Another production user, some Q & A from #riak, a blog post, and more. Enjoy. Mark Community Manager Basho Technologies wiki.basho.com twitter.com/pharkmillups Riak Recap For May 16 - 17 ===

Bitcask bindings for Ruby

2011-05-18 Thread Aphyr
I've written an extremely basic library to read Bitcask data files. If you lose everything, but have backups, all is not lost. It's easy to dump those bitcask files to a directory, or pump them back into Riak. If you are feeling *really* enterprising, you can even do it preserving vclocks. ht

undifend error for js modules

2011-05-18 Thread Malka Feldman
Hi, I have some modules with js functions for named MR. But for some keys, I get the message that my module is undefined: {"lineno":1,"message":"ReferenceError: GetTotal is not defined","source":"unknown"} If it's defined for some keys why it's not for the others (although they have same values)?