Re: Hard time with Riak 2.0.0pre5 features

2013-11-27 Thread Valter Balegas
Hello, I confirm that it does not work with two machines in the same DC. I first create the cluster, from a clean installation and then I execute the commands: ./riak-admin bucket-type create STRONG '{props: {consistent:true, n_val:2}}’ ./riak-admin bucket-type activate STRONG if i do not

Re: Hard time with Riak 2.0.0pre5 features

2013-11-26 Thread Valter Balegas
It also gives me the time-out, when i run one node locally, if i create the bucket type like this: ./riak-admin bucket-type create STRONG '{props: {consistent:true, n_val:1, last_write_wins:true}}’ Valter No dia 26/11/2013, às 02:20, Mark Phillips m...@basho.com escreveu: Hi Valter,

Re: Hard time with Riak 2.0.0pre5 features

2013-11-26 Thread Jordan West
Valter, A Riak cluster, using strongly consistent operations or otherwise, is not meant to be setup with nodes across data centers/AWS regions/etc. Riak Enterprise [1] is meant to be used with multiple Riak clusters to replicate over a WAN. Unfortunately, it does not yet support strong

Re: Hard time with Riak 2.0.0pre5 features

2013-11-26 Thread Valter Balegas
I've sent a second message stating that the same happens locally if I set the attributes described in the bucket type. Thanks, Valter Em 26/11/2013 18:16, Jordan West jw...@basho.com escreveu: Valter, A Riak cluster, using strongly consistent operations or otherwise, is not meant to be setup

Re: Hard time with Riak 2.0.0pre5 features

2013-11-26 Thread Jordan West
Hi Valter Sorry, I did not see your second message. Could you double check that the riak.conf changes have been made and the nodes have been restarted? I think a timeout error is what's returned when consensus is not enabled (I'm on my phone so I'm unable to try right now). I've done it a few

Re: Hard time with Riak 2.0.0pre5 features

2013-11-25 Thread Valter Balegas
Hello, I’m trying to use strong consistency in a riak cluster with nodes in a wide-area network, but a timeout fires sometimes, regardless the timeout value. I tried to increase the timeout of the get operation but it does not seem to help. Is there any parameter that i can change to increase

Re: Hard time with Riak 2.0.0pre5 features

2013-11-25 Thread Mark Phillips
Hi Valter, On Mon, Nov 25, 2013 at 4:47 PM, Valter Balegas bale...@gmail.com wrote: Hello, I’m trying to use strong consistency in a riak cluster with nodes in a wide-area network, but a timeout fires sometimes, regardless the timeout value. How many nodes do you have? And where are they

Re: Hard time with Riak 2.0.0pre5 features

2013-11-25 Thread Valter Balegas
No dia 26/11/2013, às 02:20, Mark Phillips m...@basho.com escreveu: Hi Valter, On Mon, Nov 25, 2013 at 4:47 PM, Valter Balegas bale...@gmail.com wrote: Hello, I’m trying to use strong consistency in a riak cluster with nodes in a wide-area network, but a timeout fires sometimes,

Re: Hard time with Riak 2.0.0pre5 features

2013-11-21 Thread Valter Balegas
Thanks, it works now! i wouldn’t realize that bucket type had to be specified as a type. But i did say that i didn’t now what that meant. :) I hope i can do all my experiments now, Valter No dia 20/11/2013, às 21:04, Valter Balegas bale...@gmail.com escreveu: Hello, Here is the sequence

Re: Hard time with Riak 2.0.0pre5 features

2013-11-20 Thread Valter Balegas
Hello, I was able to activate strong consistency, but the node keeps generating siblings, when i execute two concurrent writes (Store two objects without vector clock). I tried with the Riak 2.0.0.5pre package and the latest version on the repository. Am i missing anything? i was expecting

Re: Hard time with Riak 2.0.0pre5 features

2013-11-20 Thread Jordan West
Hi Valter, Could you provide the code you are using to generate the concurrent requests in addition to the output of `riak-admin bucket-type list` and `riak-admin bucket-type status buckettype` where buckettype is the name of the strongly consistent bucket you created (from one node should be

Re: Hard time with Riak 2.0.0pre5 features

2013-11-20 Thread Valter Balegas
Hello, Here is the sequence of commands: --Compiled Riak with make rel and riak-erlang-client with “make. Erlang version R16B02; using the latest version on GitHub or the riak2.0.0.5pre package. ./bin/riak stop --changed the consensus flag to true on ./etc/riak.conf ./bin/riak start

Re: Hard time with Riak 2.0.0pre5 features

2013-11-20 Thread Jordan West
Hi Valter, I've made some more comments in-line but the tl;dr is you are making requests to a *bucket* named bucket which is a member of the default *bucket type* instead of making requests to a *bucket* which is a member of the *bucket type* you created: bucket. I'm not surprised given we don't

Hard time with Riak 2.0.0pre5 features

2013-11-19 Thread Valter Balegas
Hello, I’ve been trying to use a couple features of Riak 2, but i cannot get things to work. I’m kinda new to Riak, but i’d like to try these features for a project. CRDTs: I’m trying to run this code: https://gist.github.com/russelldb/5da7d895cebc77dd38b8 First i create the type, which i do

Re: Hard time with Riak 2.0.0pre5 features

2013-11-19 Thread Sean Cribbs
Valter, Apologies for the issue with data types, that decoding bug has been fixed since. If you pull down the latest riak_pb from the 'develop' branch, the bug should be gone. We'll have further prerelease builds until code freeze that you could try. I hope the other engineers can address the

hard time with Riak 2.0.0pre5 features

2013-11-19 Thread Valter Balegas
Hello, I’ve been trying to use a couple features of Riak 2, but i cannot get things to work. I’m kinda new to Riak, but i’d like to try these features for a project. CRDTs: I’m trying to run this code: https://gist.github.com/russelldb/5da7d895cebc77dd38b8 First i create the type, which i do

Re: Hard time with Riak 2.0.0pre5 features

2013-11-19 Thread Valter Balegas
Great, I pulled the develop branch and went back a few commits and it works. Thank! Let's see if someone can help me with the strong consistency. Looking forward for the new releases, Valter Em 19/11/2013 15:56, Sean Cribbs s...@basho.com escreveu: Valter, Apologies for the issue with data

Re: hard time with Riak 2.0.0pre5 features

2013-11-19 Thread Mark Phillips
Alas. Another dupe from Mailman. Use this thread: http://lists.basho.com/pipermail/riak-users_lists.basho.com/2013-November/014032.html On Tue, Nov 19, 2013 at 7:31 AM, Valter Balegas bale...@gmail.com wrote: Hello, I’ve been trying to use a couple features of Riak 2, but i cannot get

Re: Hard time with Riak 2.0.0pre5 features

2013-11-19 Thread Jordan West
On Tue, Nov 19, 2013 at 7:33 AM, Valter Balegas bale...@gmail.com wrote: Strong consistency: How does one activate this? As i understand, either the pb or the http clients do not accept the consistent property. Using strong consistency in the Tech Preview is a two-step process. First, turn

Re: Hard time with Riak 2.0.0pre5 features

2013-11-19 Thread Valter Balegas
I can’t create the bucket type: RPC to 'riak@127.0.0.1' failed: {'EXIT', {badarg, [{erlang,list_to_existing_atom, [consistent], []},

Re: Hard time with Riak 2.0.0pre5 features

2013-11-19 Thread Jordan West
Valter, You mentioned you are using a recent develop. Would you be able to pull down any recent changes and update-deps (or build a fresh devrel)? I just tried a fresh clone of develop and was unable to reproduce the same error. I, also, tried with R15B01 (Riak 2.0 is slated to use R16B02 right