MapReduce job crashes?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

MapReduce job crashes?

Brad Heller
Hey everyone,

I tried asking in #riak on freenode but it appears to be a little empty today so I'll ask here, too. I've got a Map Reduce job that I'm running via HTTP. My HTTP client is complaining the EOF reached. I checked my Riak logs and the following is in there:

2012-12-11 18:44:09 =ERROR REPORT====
webmachine error: path="/mapred"
{error,{case_clause,{error,[{phase,0},{error,<<"[{<<\"lineno\">>,459},{<<\"message\">>,<<\"InternalError: script stack space quota is exhausted\">>},{<<\"source\">>,<<\"unknown\">>}]">>},{input,<<"{ok,{r_object,<<\"my_data\">>,<<\"BpdlmXZ5TQb4bEn2slYz9FBIB6N\">>,[{r_content,{dict,6,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[[<<\"Links\">>]],[],[],[],[],[],[],[],[[<<\"content-type\">>,97,112,112,108,105,99,97,116,105,111,110,47,106,115,111,110],[<<\"X-Riak-VTag\">>,69,85,112,48,115,68,65,118,99,110,71,108,89,108,50,106,82,87,108,106,75]],[[<<\"index\">>,{<<\"some_secondary_index_bin\">>,<<\"some_value\">>},{<<\"another_secondary_index_bin\">>,<<\"some_other_value\">>}]],...}}},...}],...},...}">>}]}}}

I'm using the JavaScript variant for programming the map phase. We've also tried the Erlang variant and had similar results. Any ideas?

Thanks,
Brad Heller
_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

signature.asc (858 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MapReduce job crashes?

bryan-basho
Administrator
On Tue, Dec 11, 2012 at 1:54 PM, Brad Heller <[hidden email]> wrote:
> {error,[{phase,0},{error,<<"[{<<\"lineno\">>,459},{<<\"message\">>,<<\"InternalError: script stack space quota is exhausted\">>},{<<\"source\">>,<<\"unknown\">>}]">>}

Hi, Brad. Your Javascript VM ran out of stack space. Raise the value
of `js_thread_stack` in your app.config, as detailed on
http://docs.basho.com/riak/latest/references/MapReduce---Settings/,
and that error should go away.

-Bryan

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MapReduce job crashes?

Brad Heller
What should the behavior be like if we translate this to Erlang?

On Dec 11, 2012, at 11:37 AM, Bryan Fink <[hidden email]> wrote:

> On Tue, Dec 11, 2012 at 1:54 PM, Brad Heller <[hidden email]> wrote:
>> {error,[{phase,0},{error,<<"[{<<\"lineno\">>,459},{<<\"message\">>,<<\"InternalError: script stack space quota is exhausted\">>},{<<\"source\">>,<<\"unknown\">>}]">>}
>
> Hi, Brad. Your Javascript VM ran out of stack space. Raise the value
> of `js_thread_stack` in your app.config, as detailed on
> http://docs.basho.com/riak/latest/references/MapReduce---Settings/,
> and that error should go away.
>
> -Bryan


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Loading...