Simple map/reduce gives {"error":"timeout"}

Kevin Smith ksmith at basho.com
Thu Feb 11 15:59:49 EST 2010


Yep. The map/reduce code has some rough edges. I'm working on filing them down as I go. Hopefully things will be much improved with at the next release.

--Kevin
On Feb 11, 2010, at 3:46 PM, francisco treacy wrote:

> FWIW, I had a similar error (a timeout) when running a map/reduce job
> on a bucket whose documents were accessible through the jiak interface
> (not raw)... but Riak didn't give any clue that could make me think
> that was actually the problem.
> 
> Francisco
> 
> 2010/2/11 Kevin Smith <ksmith at basho.com>:
>> Marten -
>> 
>> When Riak starts up do you see any output like this:
>> 
>> =INFO REPORT==== 11-Feb-2010::13:59:33 ===
>> Spidermonkey VM host starting (<0.94.0>)
>> 
>> =INFO REPORT==== 11-Feb-2010::13:59:33 ===
>> Spidermonkey VM host starting (<0.96.0>)
>> 
>> If not, you'll see timeouts because there aren't any Javascript VMs for Riak to use.
>> 
>> This actually bit me today during some benchmarking. I had screwed up my app.config file and no Javascript VMs started up.
>> 
>> Of course, the error message for this case should be much better and I'll be fixing that before the end of today.
>> 
>> --Kevin
>> On Feb 10, 2010, at 4:11 PM, Mårten Gustafson wrote:
>> 
>>> Howdy,
>>> 
>>> I've been trying to get some simple m/r tests to work. But always end
>>> up with {"error":"timeout"}. I run this on a bucket with 8 keys, which
>>> have a JSON-object with two string key-value pairs in it. Hence; no
>>> data volumes whatsoever.
>>> 
>>> Attached is the output from "riak-admin logger" during the m/r
>>> processing on 192.168.20.57 which is the node I POST the m/r to. Below
>>> is the m/r i try to run and the bucket info.
>>> 
>>> 
>>> 
>>> Thanks
>>> /mårten.
>>> 
>>> 
>>> Map/Reduce test:
>>> {"inputs":"mrtest", "query":[{"map":{"language":"javascript",
>>> "source":"function(value, keyData, arg) { return [1] }"}}]}
>>> 
>>> Bucket info:
>>> http://192.168.20.57:8098/raw/mrtest
>>> 
>>> {
>>>  "props": {
>>>    "name": "mrtest",
>>>    "allow_mult": false,
>>>    "big_vclock": 50,
>>>    "chash_keyfun": {
>>>      "mod": "riak_util",
>>>      "fun": "chash_std_keyfun"
>>>    },
>>>    "linkfun": {
>>>      "mod": "raw_link_walker_resource",
>>>      "fun": "mapreduce_linkfun"
>>>    },
>>>    "n_val": 3,
>>>    "old_vclock": 86400,
>>>    "small_vclock": 10,
>>>    "young_vclock": 20
>>>  },
>>>  "keys": [
>>>    "five",
>>>    "one",
>>>    "two",
>>>    "three",
>>>    "six",
>>>    "eight",
>>>    "four",
>>>    "seven"
>>>  ]
>>> }
>>> <mr.log>_______________________________________________
>>> riak-users mailing list
>>> riak-users at lists.basho.com
>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>> 
>> 
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>> 




More information about the riak-users mailing list