That is the JSON format for a MapReduce job. You need to POST it to the mapred end point like so:
curl -XPOST -H"content-type=application/json" -d - http://localhost:8098/mapred --Kevin On Nov 9, 2010, at 5:54 AM, Andrea Campolonghi wrote: > I am testing the riak mapreduce syntax. > > I am using the default bucket and I am sure I have something inside in json > format. > > curl -v GET http://localhost:8098/riak/bucket/susi > > get me back : > > {"idleTime":0,"expires":0,"timeIdle":0,"created":1289247328234,"hits":0,"lastModified":1289247328234,"exprires":1289247328234,"value":"'Susanne'","lifeSpan":0} > > Now When I try to run this from the riak console I do not get any result: > > {"input":"bucket","query":[{"map":{"language":"javascript","source":"function(v) > { return [v]; }","keep":true}}]}; > > Any suggestion? > > Thanks > > -- > Andrea Campolonghi > > Cell : +39 347 2298435 > and...@andreacfm.com > http://www.andreacfm.com > > Railo Team > and...@getrailo.org > http://getrailo.org > > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com