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

Brian Roach roach at basho.com
Thu Jul 25 09:54:43 EDT 2013


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




More information about the riak-users mailing list