> The query:
> curl -X POST http://localhost:8098/mapred -H 'Content-Type:
> application/json' -d
> '{"inputs":"testfs","query":[{"map":{"language":"javascript","name":"Riak.mapValuesJson","keep":true}}]}'

Since you're using mapValuesJson, the data over which you're iterating
must be valid JSON. Do you have an example (or two) of the data you're
using?

This is the part of the output that I'm interested in - you'll notice
that it's not a valid string representation of JSON data:

{\"items\": {\"one": null, \"two": null}, \"status\": {\"time\":
1379469049, \"size\": 0}}

Try changing "mapValuesJson" to just "mapValues" and check the output
there. I ran this query and saw the set of test data in my local
cluster:

curl -X POST http://localhost:10018/mapred -H 'Content-Type:
application/json' -d
'{"inputs":"test","query":[{"map":{"language":"javascript","name":"Riak.mapValues","keep":true}}]}'

--
Luke Bakken
CSE
[email protected]

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

Reply via email to