Re: Default values vs non-existing keys for CRDTs

2015-08-20 Thread Russell Brown
It’s a tricky one Timur. CRDTs are based on Join Semi-Lattices, and they have the concept of a bottom value. That is what you are seeing. Implicitly all keys exist at the bottom value until you operate on them. Since you cannot do a compare-and-set operation with a counter anyway (that is you ca

Re: s3cmd error: access to bucket was denied

2015-08-20 Thread changmao wang
somebody watching on this? On Wed, Aug 19, 2015 at 9:01 AM, changmao wang wrote: > Matthew, > > I used s3cmd --configure to generate ".s3cfg" config file and then access > RIAK service by s3cmd. > The access_key and secret_key from ".s3cfg" is same as admin_key > and admin_secret from "/etc/riak

Re: s3cmd error: access to bucket was denied

2015-08-20 Thread Stanislav Vlasov
2015-08-20 13:57 GMT+05:00 changmao wang : > somebody watching on this? Do you set up same domain in riak-cs.conf and in .s3cfg? I got such error in this case. > On Wed, Aug 19, 2015 at 9:01 AM, changmao wang > wrote: >> >> Matthew, >> >> I used s3cmd --configure to generate ".s3cfg" config file

Re: s3cmd error: access to bucket was denied

2015-08-20 Thread changmao wang
stanislav, what's your meaning of domain name of /etc/riak-cs/app.config and ~/.s3cfg? I guess it's cs_root_host parameter from /etc/riak-cs/app.config and host_base from '~/.s3cfg'. If so, there're same as "api2.cloud-datayes.com". However, I can not ping this host from localhost. On Thu, Aug 20

Re: s3cmd error: access to bucket was denied

2015-08-20 Thread Stanislav Vlasov
2015-08-20 14:47 GMT+05:00 changmao wang : > what's your meaning of domain name of /etc/riak-cs/app.config and ~/.s3cfg? > I guess it's cs_root_host parameter from /etc/riak-cs/app.config and > host_base from '~/.s3cfg'. > If so, there're same as "api2.cloud-datayes.com". Yes, is that i mean, but

Re: s3cmd error: access to bucket was denied

2015-08-20 Thread changmao wang
Just now, I used "admin_key" and "admin_secret" from /etc/riak-cs/app.config to run "s3cmd -c s3-stock ls s3://stock/XSHE/0/000600" and I got the below error: ERROR: Access to bucket 'stock' was denied Below is abstract from "/var/log/riak-cs/console.log" 2015-08-20 18:40:22.790 [debug] <0.28085.

Re: s3cmd error: access to bucket was denied

2015-08-20 Thread Kazuhiro Suzuki
Hi Changmao, It seems your s3cmd config should include 2 items: signature_v2 = True host_base = api2.cloud-datayes.com Riak CS requires "signature_v2 = True" since Riak CS has not supported s3 authentication version 4 yet. You can find a sample configuration of s3cmd here to interact with Riak

Re: Default values vs non-existing keys for CRDTs

2015-08-20 Thread Timur Fayruzov
Forgot to include the list in the initial response. Thanks, Dmitri. I'm writing in Scala so I use riak java client. That seem to make the trick: val fetchOp = new FetchValue.Builder(key.location).withOption(FetchValue.Option.HEAD, java.lang.Boolean.TRUE).build() val res = module.client.execute(f

Re: Default values vs non-existing keys for CRDTs

2015-08-20 Thread Timur Fayruzov
Forgot to include the list in the initial response. > On Thu, Aug 20, 2015 at 12:31 AM, Russell Brown > wrote: > >> It’s a tricky one Timur. CRDTs are based on Join Semi-Lattices, and they >> have the concept of a bottom value. That is what you are seeing. Implicitly >> all keys exist at the bo

Re: s3cmd error: access to bucket was denied

2015-08-20 Thread changmao wang
Kazuhiro, Maybe that's not the key point. I'm using riak 1.4.2 and follow below docs to configure "s3cfg" file. http://docs.basho.com/riakcs/1.4.2/cookbooks/configuration/Configuring-an-S3-Client/#Sample-s3cmd-Configuration-File-for-Production-Use There's no "signature_v2" parameter in "s3cfg". H