Java Client - Maps - fetch only one entry

2016-02-25 Thread Cosmin Marginean
On 25 Feb 2016, at 19:26, Cosmin Marginean <cosmargin...@gmail.com> wrote: Hi, I couldn’t find this anywhere in the docs: is there a mechanism in Riak to fetch only one Register (or a specific entry) from a map? We have a use case where we have a map and need to only get the value for

Re: Custom Object Mapper settings in Java Client

2016-02-22 Thread Cosmin Marginean
.api.convert.Converter). > > I think this is the right way to add custom serialization. > > Regards, > Vitaly > > On Mon, Feb 22, 2016 at 11:29 AM, Cosmin Marginean < > cos.margin...@gmail.com> wrote: > >> Hi >> >> I presume that Riak Java client is

Re: AWS instance types

2015-12-08 Thread Cosmin Marginean
Both AWS engineers and Basho people, will most likely ask for throughput etc before recommending solutions. That being said, there’s a few things to consider. For example, most AWS engineers will suggest you use all the availability zones when deploying a distributed storage solution like

Re: Strong consistency only for missing keys?

2015-06-19 Thread Cosmin Marginean
Hi Ilya Read “quorum” is unusual and a bit against the idea of distributed DB, but I believe what you might find useful is enabling strong consistency, which you can then chose to apply at a bucket(type) level: * http://docs.basho.com/riak/latest/dev/advanced/strong-consistency/ One of the

Java Client and/or server error codes

2015-06-02 Thread Cosmin Marginean
I’m simulating a failure with a concurrent update on a strongly consistent bucket/entry. This fails as it should for the second update, however the error message/code is not entirely useful. com.basho.riak.client.core.netty.RiakResponseException: failed We’ve investigated this and the

Riak Java Client

2015-04-27 Thread Cosmin Marginean
One quick question on the Riak Java Client. Brian Roach seemed to have been the only active contributor to this. Recently he mentioned that he's leaving Basho though, so I was wondering if he'll be maintaining this moving forward. Since the Riak Java client is now a fundamental part of our

Re: Java Client update vs store

2015-02-27 Thread Cosmin Marginean
= Riakclient.executeAsync(updateOp); future.await(); if (future.isSuccess()) { ... } else { ... } Thanks, - Roach On Tue, Feb 3, 2015 at 3:39 PM, Cosmin Marginean cosmin...@gmail.com (mailto:cosmin...@gmail.com) wrote: I have an edge case where consistency is favoured over availability so I’m

Java Client update vs store

2015-02-03 Thread Cosmin Marginean
I have an edge case where consistency is favoured over availability so I’m using a consistent: true bucket type for a very specific operation. I worked in testing my setup so ended up faking an entire failure by deliberately using an incorrect vClock. Using StoreValue, the (second) write fails

Re: Riak Java Client and Links

2015-01-27 Thread Cosmin Marginean
, Jan 27, 2015 at 4:29 AM, Cosmin Marginean cosmin...@gmail.com (mailto:cosmin...@gmail.com) wrote: I am implementing a custom way to handle Riak Links using a Java Client. Looking at the samples available (https://github.com/basho/riak-java-client/wiki/Using-links which is outdated) it seems

Riak Java Client and Links

2015-01-27 Thread Cosmin Marginean
I am implementing a custom way to handle Riak Links using a Java Client. Looking at the samples available (https://github.com/basho/riak-java-client/wiki/Using-links which is outdated) it seems that it’s not entirely straightforward to use RiakLinks with POJOs and automatic conversion. More

Re: Links and Bucket Types

2015-01-26 Thread Cosmin Marginean
Hi guys, any ideas on this thing below? Am I missing something around how links should work when using bucket types? Thank you Cos On Wednesday, 21 January 2015 at 20:42, Cosmin Marginean wrote: Using Riak 2.0.2 on CentOS and trying to create some Links attached to an object using

Re: Having trouble in connecting to Riak in EC2 with another Ec2 instance

2015-01-23 Thread Cosmin Marginean
Hi Santi, I’m presuming you’re running Linux, so this might be the result of Riak binding to 127.0.01 by default. You might want to adjust that in /etc/riak/riak.conf Check for listener.protobuf.* and listener.http.* area. More on this topic here:

Links and Bucket Types

2015-01-21 Thread Cosmin Marginean
Using Riak 2.0.2 on CentOS and trying to create some Links attached to an object using the Links header. We are using bucket types and this behaviour doesn’t seem to replicate when using plain buckets. Doing the following works as expected curl -H Content-Type:text/plain -X POST

Re: Links and Bucket Types

2015-01-21 Thread Cosmin Marginean
PS: Upgraded to 2.0.4, but issue is still reproducing. Cos On Wednesday, 21 January 2015 at 20:42, Cosmin Marginean wrote: Using Riak 2.0.2 on CentOS and trying to create some Links attached to an object using the Links header. We are using bucket types and this behaviour doesn’t

Re: Link Walking and Security

2015-01-21 Thread Cosmin Marginean
, no. Thanks, - Roach On Tue, Jan 20, 2015 at 10:24 AM, Cosmin Marginean cosmin...@gmail.com (mailto:cosmin...@gmail.com) wrote: (Apologies if this is a recurring topic, but I haven’t read a clear statement yet in relation to this) Using Riak, I sometimes feel that link walking might

Link Walking and Security

2015-01-20 Thread Cosmin Marginean
(Apologies if this is a recurring topic, but I haven’t read a clear statement yet in relation to this) Using Riak, I sometimes feel that link walking might be a corner stone for certain data modelling techniques. The Riak documentation though states clearly that this is not feasible while also

Re: Java Client and clobber update

2015-01-14 Thread Cosmin Marginean
original) { return entity; } } ... .withUpdate(new UpdateEntity(entity)) ... I've tested both of these solutions and they both work. Thanks and sorry for the problem, - Roach On Wed, Jan 14, 2015 at 1:39 PM, Cosmin Marginean cosmin...@gmail.com (mailto:cosmin

Java Client and clobber update

2015-01-14 Thread Cosmin Marginean
I’m doing a fairly “by the book” clobber update (store and fetch below work fine) on an entity using the Java client. I’m seeing an error that happens at type-inference time within the Riak Java client. I’m pasting below the exact test that I’m using to generate this, as well as the stacktrace.

Wiping Riak 2.0 data

2015-01-04 Thread Cosmin Marginean
Hi, I’m running Riak 2.0.2 on Centos 6.5 installed from an RPM (http://s3.amazonaws.com/downloads.basho.com/riak/2.0/2.0.2/rhel/6/riak-2.0.2-1.el6.x86_64.rpm) I’m interested in wiping the entire storage (in order to re-run tests, etc). I have a script that traverses buckets/keys but I’m

Re: Wiping Riak 2.0 data

2015-01-04 Thread Cosmin Marginean
/riak/anti_entropy/*/* 4. Turn Riak back on This will preserve your buckets and bucket types in in cluster metadata. You can also automate that, but it's a little more complicated. On Sun, Jan 4, 2015 at 4:25 AM, Cosmin Marginean cosmin...@gmail.com (mailto:cosmin...@gmail.com) wrote: Hi