Re: Link walking with a java client

2012-05-27 Thread Deepak Balasubramanyam
1 machine. OS - Linux mint. On Sun, May 27, 2012 at 10:05 AM, Deepak Balasubramanyam < deepak.b...@gmail.com> wrote: > Hi, > > I have a cluster that contains 2 buckets. A bucket named 'usersMine' > contains the key 'user2', which is linked to several

Re: Link walking with a java client

2012-05-29 Thread Deepak Balasubramanyam
e second by walking the links, the second returns the data). > > Thanks, > Brian Roach > > On May 27, 2012, at 7:19 AM, Deepak Balasubramanyam wrote: > > > This looks like a bug. The code to walk links via a HTTP client works > perfectly. The same code fails when the PB cli

Re: Link walking with a java client

2012-06-01 Thread Deepak Balasubramanyam
ed. Link Walking in the protocol buffers Java client is a hack that >> issues two m/r jobs to the protocol buffers interface (the first constructs >> the inputs to the second by walking the links, the second returns the data). >> >> Thanks, >> Brian Roach >> &g

Re: MapReduce - sorting via the Java client

2012-09-11 Thread Deepak Balasubramanyam
I was researching the same question and found the answer after some tinkering around. You need a JS source function. You must write the JS source code for the sort algorithm too. JSSourceFunction phaseFunction = new JSSourceFunction( "function(v) {" + "return v.sort(functio

Re: MapReduce - sorting via the Java client

2012-09-11 Thread Deepak Balasubramanyam
Hi Mark, Sure, I can help whip up a page when I find the time. Do I get access to edit the wiki or should I email ro...@basho.com ? Thanks Deepak Bala On Tue, Sep 11, 2012 at 10:58 PM, Mark Phillips wrote: > Hi Deepak, > > In-line > > On Tue, Sep 11, 2012 at 10:16 AM, Deepak

Java map-reduce and result keys

2012-09-14 Thread Deepak Balasubramanyam
Hi, I've written a map reduce query on the riak java client like so... client.mapReduce(BUCKET).addKeyFilter(keyFilter) .addLinkPhase(BUCKET, "_", false) .addMapPhase(new NamedJSFunction("Riak.mapValuesJson"), false) .addReducePhase(phas

Re: Java map-reduce and result keys

2012-09-14 Thread Deepak Balasubramanyam
There are quite a few open pull requests on that repo, so I'm not sure where this change should go. Thanks Deepak Bala On Fri, Sep 14, 2012 at 7:16 PM, Russell Brown wrote: > > On 14 Sep 2012, at 14:24, Deepak Balasubramanyam wrote: > > > Hi, > > > > I'

Re: Java map-reduce and result keys

2012-09-18 Thread Deepak Balasubramanyam
asho/riak_kv/blob/master/src/riak_kv_mapreduce.erl > > Mark > > On Sun, Sep 16, 2012 at 5:08 PM, Mark Phillips wrote: > > Hi Deepak, > > > > I can answer one of two questions here... > > > > On Fri, Sep 14, 2012 at 9:42 AM, Deepak Balasubramanyam &

Re: Evolving data model

2012-09-19 Thread Deepak Balasubramanyam
It really depends on your use case. Guido's tips on not-null and ignore-properties will help. With *JsonIgnoreProperties* you can also specify which ones you would like to ignore. That helps check ignoring properties that you know *should* exist. Converting your documents to a new format is a lot

HTTP Client bug

2012-09-24 Thread Deepak Balasubramanyam
Hi, My servers complain about a leaky apache DateUtils class during hot deployments. This is a known bugin http 4.1.x and has been fixed in 4.2.x. Can the next version of riak-client be updated to include the newer HTTP client (the current ver

Re: HTTP Client bug

2012-09-24 Thread Deepak Balasubramanyam
va, I would suggest you to > keep an eye on the github, many good bugs getting fixed quickly. > > https://github.com/basho/riak-java-client/pull/159 > > Best regards, > > Guido > > > > On 24/09/12 19:45, Deepak Balasubramanyam wrote: > > Hi, > > My servers

Re: HTTP Client bug

2012-09-24 Thread Deepak Balasubramanyam
7;t be reproduced by the riak java client. > > > On 24/09/12 20:13, Deepak Balasubramanyam wrote: > > Guido, > > Reading the comments on that pull request, I get the feeling that pcl is > suggesting that upgrading to 4.2.2 is another way to solve the problem. I > dont think

Bug on riak-client 1.0.6 - Riak index property not serialized

2012-09-25 Thread Deepak Balasubramanyam
I switched to the java riak-client 1.0.6 to take it for a spin, and several test cases of mine failed. Upon further investigation I found that any member variable that contains the @RiakIndex annotation does not serialize into Riak anymore. You can reproduce the problem with the following type @Js

Re: Bug on riak-client 1.0.6 - Riak index property not serialized

2012-09-25 Thread Deepak Balasubramanyam
> > Thanks, > Brian Roach > > On Tue, Sep 25, 2012 at 1:01 AM, Deepak Balasubramanyam > wrote: > > I switched to the java riak-client 1.0.6 to take it for a spin, and > several > > test cases of mine failed. Upon further investigation I found that any > > m

Re: Bug on riak-client 1.0.6 - Riak index property not serialized

2012-09-26 Thread Deepak Balasubramanyam
get you will see riak-java-client-1.0.6t.jar > > Best regards, > > Guido > > > On 26/09/12 07:10, Deepak Balasubramanyam wrote: > > I see. All index annotations will need the @JsonProperty annotation to > survive serialization then. I guess another side effect which will

Indexes on 64 bit values

2012-12-05 Thread Deepak Balasubramanyam
Hi folks, I have a query regarding riak indexes. My current understanding is that riak cannot index numbers whose representation needs more than 32 bits. There is an issue on the basho repo to address this - https://github.com/basho/riak-java-client/issues/112 . Do you have any idea when it will b

Dissecting a riak crash

2012-12-06 Thread Deepak Balasubramanyam
Hi, I'm running a 4 member riak cluster that failed today for unknown reasons. At a particular point in time, I noticed that the HTTP riak connector began refusing connections to my client java.lang.RuntimeException: com.basho.riak.client.RiakRetryFailedException: com.basho.riak.client.http.respo

Re: Indexes on 64 bit values

2012-12-09 Thread Deepak Balasubramanyam
Bumping this thread back up. Can someone from Basho take a shot at this ? Thanks -Deepak On Wed, Dec 5, 2012 at 6:10 PM, Deepak Balasubramanyam < deepak.b...@gmail.com> wrote: > Hi folks, > > I have a query regarding riak indexes. My current understanding is that > riak ca

Re: Indexes on 64 bit values

2012-12-09 Thread Deepak Balasubramanyam
han a breaking > change in either a database client or, worse, a database itself. > > Example: > > 1619587083804677205 becomes the string 0x1679EDDF2CFD1455. > > Using the powers of sorting, everything works out in the end.6 > > > > On Sunday, December 9, 2012, Deepak

Re: Riak Production cluster

2012-12-16 Thread Deepak Balasubramanyam
There is nothing in particular. Reading through loads of documentation and user experiences on the riak-users list should give you some idea of what to expect. I've been playing around with a production cluster of late. Here are some salient points off the top of my head based on load tests I ran r

Riak and host names

2013-01-01 Thread Deepak Balasubramanyam
I took the AWS EC2 riak image for a spin today. I have a query regarding riak nodes and how they behave when the machine reboots. When an EC2 instance reboots, the internal ip / internal DNS / external DNS change. This renders the app.config and -name argument on vm.args incorrect. I was exploring

Re: Riak and host names

2013-01-04 Thread Deepak Balasubramanyam
Perhaps I should ask the question differently. Can someone elaborate on what 'cluster replace' does and how the command is affected by node names that change after riak starts up ? Thanks -Deepak On Wed, Jan 2, 2013 at 1:13 AM, Deepak Balasubramanyam < deepak.b...@gmail.com>

Re: Riak and host names

2013-01-11 Thread Deepak Balasubramanyam
Thanks for all the suggestions. I will take some time to review and try them out. I'll get back to this thread when I do. -Deepak On Thu, Jan 10, 2013 at 3:04 PM, Richard Shaw wrote: > Hi Matt, > > For stopping and starting rather than rebooting, you need to use > elastic IPs inside of Amazon'

Re: Riak and host names

2013-02-08 Thread Deepak Balasubramanyam
e your life much easier. Thank you again for all your suggestions. Is there a Riak wiki that I can contribute this information to ? It would be easier for users to choose between deployment solutions if they know what options are available. Thanks -Deepak On Sat, Jan 12, 2013 at 1:02

Re: Riak and host names

2013-02-08 Thread Deepak Balasubramanyam
Awesome. I'll make a pull request soon. Thanks -Deepak On Sat, Feb 9, 2013 at 12:08 AM, Mark Phillips wrote: > Hi Deepak, > > On Fri, Feb 8, 2013 at 3:15 AM, Deepak Balasubramanyam > wrote: > > Hi folks, > > > > After trying a couple of configurations, I&

Re: Expiring keys

2013-02-26 Thread Deepak Balasubramanyam
A bitcask backend will allow you to set expiry for keys. Using multiple backends allows expired and persistent keys to co-exist. I searched the riak user list and fished out a thread discussing this. Let us know if that is wh