Closed
Description
Hi,
How can I connect to a cluster using authentication?
Currently I am using
var nodes = [];
hosts.forEach(function (host) {
var hostPort = host.split(':');
nodes.push(new Riak.Node({
remoteAddress: hostPort[0],
remotePort: hostPort[1],
auth: {
user: "",
password: ""
},
connectionTimeout: 5000,
cork: true
}));
});
client = new Riak.Client(new Riak.Cluster({nodes: nodes}));
But I cant seem to get a connection so far ( RiakConnection Timed out trying to connect)
I can't seem to find documentation for connecting using credentials either. Is there documentation avialable?
Looking forward to your reply