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

kiran kulkarni kk.questworld at gmail.com
Thu Jul 25 10:02:07 EDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20130725/26f4c3af/attachment.html>


More information about the riak-users mailing list