How to connect a cluster with riak running non-standard PB port

Brian Roach roach at basho.com
Thu Jul 25 10:49:10 EDT 2013


http://basho.github.io/riak-java-client/1.4.0/com/basho/riak/client/raw/config/ClusterConfig.html#addClient(T)

On Thu, Jul 25, 2013 at 8:02 AM, kiran kulkarni <kk.questworld at gmail.com> wrote:
> Thanks, This work if port is same for all hosts. My usecase is a bit
> different:
> Actually for development, I run 4 Riak instances locally with different
> ports 10017, 10027, 10037, 10047 for PB.
>
>
>
> On Thu, Jul 25, 2013 at 7:24 PM, Brian Roach <roach at basho.com> wrote:
>>
>> On Thu, Jul 25, 2013 at 7:47 AM, kiran kulkarni <kk.questworld at gmail.com>
>> wrote:
>> > Class PBClusterConfig has only method addHosts which allows to set hosts
>> > only. I am using a different port for PB connections. How do I set host
>> > and
>> > port both?
>>
>>
>> http://basho.github.io/riak-java-client/1.4.0/com/basho/riak/client/raw/pbc/PBClientConfig.html
>>
>> PBClientConfig myPbClientConfig = new
>> PBClientConfig.Builder().withPort(5555).build();
>>         myPbClusterConfig.addHosts(myPbClientConfig,
>> "192.168.1.10","192.168.1.11","192.168.1.12");
>>
>>
>> - Roach
>
>
>
>
> --
> Kiran Kulkarni
> http://about.me/kiran_kulkarni




More information about the riak-users mailing list