MapRed by HTTP to bucket_type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MapRed by HTTP to bucket_type

niedomnie
How should look inputs for mapreduce job in HTTP

something like this is working on default bucket_type

curl -s -X POST -H "Content-Type: application/json" http://localhost:8098/mapred -d '{"inputs":{"bucket":"history100","key_filters":[["starts_with", "2014"]]}, "query":[{"map":{"language":"javascript", "name":"Riak.mapValues"}} ]}'

how to change it to work on other bucket_type?
Reply | Threaded
Open this post in threaded view
|

Re: MapRed by HTTP to bucket_type

niedomnie
Ok, I've just found

curl -s -X POST -H "Content-Type: application/json" http://localhost:8098/mapred -d '{"inputs":{"bucket":["bucket_type", "bucket"],"key_filters":[["starts_with", "2014"]]}, "query":[{"map":{"language":"javascript", "name":"Riak.mapValues"}} ]}'