Sati,
Check, if you see the following error in your log file:
crasher:
initial call: riak_kv_js_vm:init/1
pid: <0.404.0>
registered_name: []
exception exit: {{badmatch,{error
,enoent}},[{riak_kv_js_vm,load_mapred_builtins,1},{js_driver,new,3},{riak_kv_js_vm,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}
in function gen_server:init_it/6
in call from proc_lib:init_p_do_apply/3
ancestors: [riak_kv_js_sup,riak_kv_sup,<0.286.0>]
messages: []
links: [<0.353.0>,#Port<0.4849>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 24
reductions: 678
neighbours:
2012-04-04 09:09:42 =SUPERVISOR REPORT====
Supervisor: {local,riak_kv_js_sup}
Context: child_terminated
Reason: {{badmatch,{error
,enoent}},[{riak_kv_js_vm,load_mapred_builtins,1},{js_driver,new,3},{riak_kv_js_vm,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}
Offender: [{pid,<0.404.0>},{name,undefined},{mfargs,{riak_kv_
js_vm,start_link,undefined}},{restart_type,temporary},{
shutdown,2000},{child_type,worker}]
It means that all js_vm crash on start. I had similar problem with 1.1.1,
it is because
'mapred_builtins.js' is missing in '<your riak path>/lib/riak_kv-1.1.1/priv/'
folder.
Copy it there from "
https://raw.github.com/basho/riak_kv/master/priv/mapred_builtins.js".
Alternatively you can update to 1.1.2 (
https://github.com/basho/riak/zipball/riak-1.1.2).
It's solved there.
-Matthew
On Tue, Apr 24, 2012 at 11:58, Sean Cribbs <[email protected]> wrote:
> Mohit,
>
> Be aware that key filters are just a thin layer on top of full-bucket key
> listings. You'd be better off storing the field you want to filter in a
> secondary index, which more efficiently supports range queries (note that
> only the LevelDB storage engine currently supports secondary indexes).
> Barring that, you could use the special "$key" index for a range query on
> the key.
>
> On Tue, Apr 24, 2012 at 1:07 PM, Sati, Mohit <[email protected]> wrote:
>
>> Hello All,
>>
>> I'm getting the below error in my queries. I'm using riak 1.1.1
>>
>> Riak Version:
>> ============
>> $rpm -qa | grep riak
>> riak-1.1.1-1.el6.x86_64
>>
>> Riak Error:
>> ========
>> HTTP/1.1 100 Continue
>> HTTP/1.1 500 Internal Server Error
>> Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
>> Date: Tue, 24 Apr 2012 16:58:53 GMT
>> Content-Type: application/json
>> Content-Length: 625
>> {"phase":0,"error":"[preflist_exhausted]"
>>
>> Query:
>> ==========
>> My query is doing a range scan. I can only get data for 1 day. For 2 or
>> more days it is throwing the error posted above.
>>
>> {"inputs":{ "bucket":"tagg_dsquery",
>> "key_filters":[["and",
>> [["starts_with", "dsquery-us_prm"]],
>> [["and",
>> [["tokenize", "-", 5], ["greater_than_eq",
>> "20120312"]],
>> [["tokenize", "-", 5], ["less_than_eq", "20120314"]]
>> ]]
>> ]]},
>> ...
>> ...
>>
>>
>> app.config changes:
>> =============
>> map_js_vm_count - increased to 32,64,128 and 256 but not helping
>> js_max_vm_mem - increased to 32,64,128,256,512 and 1024.
>> js_thread_stack - increased to 64,128,256,512,1024 and 2048 (cannot go
>> beyond) - riak would not start
>>
>> Can anyone help me to debug this issue. My queries cannot go beyond 1 day
>>
>> Thanks
>> Mohit
>>
>> _______________________________________________
>> riak-users mailing list
>> [email protected]
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>
>
> --
> Sean Cribbs <[email protected]>
> Software Engineer
> Basho Technologies, Inc.
> http://basho.com/
>
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com