Re: Using MapReduce with Counters

2013-08-02 Thread Russell Brown
On 2 Aug 2013, at 16:56, João Machado wrote: > Hi Sean, > > Thanks for your quick response. If I follow the steps from Sam, it works as > expected. I tried the same steps but with my own bucket (and data) and it > worked too. The difference between what I was trying and what Sam did was > be

Re: Using MapReduce with Counters

2013-08-02 Thread João Machado
Hi Sean, Thanks for your quick response. If I follow the steps from Sam, it works as expected. I tried the same steps but with my own bucket (and data) and it worked too. The difference between what I was trying and what Sam did was because I used JavaScript and Sam Erlang. Is there any trick to

Re: Using MapReduce with Counters

2013-08-02 Thread Sean Cribbs
Hi João, You might want to try the steps shown in Sam Elliott's "cookbook": https://github.com/basho/riak_crdt_cookbook/blob/master/counters/README.md On Fri, Aug 2, 2013 at 2:56 PM, João Machado wrote: > Hello, > > Anyone tried to use MR with counters? > > I'm trying with the following steps:

Using MapReduce with Counters

2013-08-02 Thread João Machado
Hello, Anyone tried to use MR with counters? I'm trying with the following steps: Increment the counter: -> curl -X POST http://localhost:8098/buckets/BUCKET/counters/MY_COUNTER -d 1 Confirm the actual value: -> curl http://localhost:8098/buckets/BUCKET/counters/MY_COUNTER *1* Execute mapreduc