Re: riak mapreduce failure

2011-07-06 Thread Jonathan Langevin
BTW, I didn't see this actually covered in the wiki, but in my testing just now, I found that instead of "source" you can pass "name" and specify an existing JS function (of which Riak has several included to assist with map & reduce phases). (Sadly, the provided JS functions have no code comments,

Re: riak mapreduce failure

2011-07-06 Thread Jonathan Langevin
I've not attempted map/reduce before, so this was a learning experience for me. Pay attention to the brackets in the function :-) root@dev:~# curl -i -d '{"inputs":"test","query":[{"map":{"language":"javascript","source":"function(val) { return [val]; }","keep":true}}]}' -H "Content-Type: applicat

Apt/PPA repository?

2011-07-06 Thread Jonathan Langevin
Any update on the possibility of getting an APT/PPA repository for Debian users? A ppa repo hosted on Launchpad would be keen :-) I'm sure the RHEL guys would like a YUM repo as well. Repository support is a must, as it can improve the chances of getting non-Riak users to try it out (copy/pasting

riak mapreduce failure

2011-07-06 Thread Matt Graham
Hi, I'm trying to test out riak's mapreduce for just a simple case but I can't get it to work. Maybe someone can help with what I'm doing wrong. I have the latest build of Riak available for Ubuntu installed. I add an object to riak, that works. I can then fetch it. Then I try to run a mapredu

Re: Map/Red Function Cache Corruption?

2011-07-06 Thread Eric Stevens
Yep, our sysadmin admitted he's behind on upgrades, we'll get it upgraded and see if that solves the problem. Thanks Mathias! On Tue, Jul 5, 2011 at 3:05 AM, Mathias Meyer wrote: > Eric, > > are you by any chance still running Riak 0.14.1? There was a bug showing > the same symptoms you're desc

Riak Recap for June 29 - July 5

2011-07-06 Thread Mark Phillips
Afternoon, Evening, Morning to All - For today's Recap: jobs, new wiki content, Riak at a Cassandra meetup, new code for the Python client, and much more. Enjoy. Mark Community Manager Basho Technologies wiki.basho.com twitter.com/pharkmillups Riak Reca

Merge times.

2011-07-06 Thread Misha Gorodnitzky
Hello fellow Riakers, What are the factors that affect how long it takes Riak to do a merge? In our scenario, doing a merge takes about an hour per node, and that's regardless of wether that's a result of Riak deciding to do a merge on it's own, us forcing a merge (which we do nightly via cron)

riaksearch performace when numFound is high

2011-07-06 Thread Greg Pascale
Hi, I'm looking at ways to improve riaksearch queries that produce a lot of matches. In my use case, I only ever want the top 20 results for any query, and results should be ordered by date (which is encoded in the key). For searches with few matches (numFound < ~1000), performance is great. For

Re: db.save() vs. db.update()

2011-07-06 Thread francisco treacy
Didn't have a close look, but it seems like a bug in riak-js. Please open an issue at https://github.com/frank06/riak-js/issues If you have any doubt, *always* prefer `db.get()` and `db.save()`. I kinda regret having agreed to include `db.update()`. If it's causing confusion I will have to remove

Re: db.save() vs. db.update()

2011-07-06 Thread Mathias Meyer
Claus, it looks you're mixing up metadata objects with actual data objects when calling update. update does a get/put cycle, where it fetches an object, merges its attributes with the ones you hand over to update() and save the result back. Any change you accidentally pass in the meta object fr

Re: Troubleshooting riak inserts

2011-07-06 Thread Fyodor Yarochkin
Greetings, Thanks for the response. The recommendation on simply taking out the corrupted buffer file worked! There was indeed single buffer file (buffer.13), which apparently was causing the crash. Once renamed, the node stopped hanging on new data inserts. Thanks for the interpretation of the