I'm working out the kinks in CorrugatedIron and I ran into a new issue.

When I run the following MR query, Riak starts complaining about bad inputs

{"inputs":{"bucket":"riak_search_bucket","query":"name:Al*"},"query":[{"map":{"language":"javascript","source":"function(value,
keydata, arg) { return [value];
}","keep":true}},{"reduce":{"language":"javascript","source":"function(values,
arg) { return values; }","keep":true}}]}

The error I'm getting back from Riak is:

Riak returned an error. Code '1'. Message: Error sending inputs:
{{modfun,riak_search,mapred_search,
                               [<<"riak_search_bucket">>,<<"Al*">>,[]]},
                       error,badarg,
                       [{ets,lookup,[schema_table,<<"riak_search_bucket">>]},
                        {riak_search_config,get_schema,1},
                        {riak_search_client,parse_query,3},
                        {riak_search,parse_query,3},
                        {riak_search,mapred_search,3},
                        {riak_kv_mrc_pipe,send_inputs,3},
                        {riak_kv_mrc_pipe,'-send_inputs_async/3-fun-0-',3}]}

The body of the test installs the search schema, inserts two objects
into the appropriate bucket, and then issues this MR query.

I suspect I'm missing something obvious, but another set of eyes would
be appreciated.
---
Jeremiah Peschka
Managing Director, Brent Ozar PLF, LLC

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to