Couchbase with elasticsearch cluster authentication failed

Hello! I'm trying to use elastic search with couchbase plugin. All was fine until I've tryed to create Elasticsearch cluster.
When I'm trying create cluster reference I get next message:

Attention - Authentication failed. Verify username and password. Got HTTP status 401 from REST call get to http://192.168.100.95:9091/pools. Body was: "<html>\n<head>\n<meta http-equiv=\"Content-Type\" co"

This is my elasticsearch.yml

cluster.name: cluster_name
node.name: node_name
node.master: true
node.data: true
couchbase.password: password
couchbase.username: user
couchbase.maxConcurrentRequests: 1024

I've tryed go to http://192.168.100.95:9091/pools with my login and password - unsuccesful. But I can authenticate with empty password by this link (can't from couchbase - password may be not empty). If i turn off clustermode

#cluster.name: cluster_name
#node.name: node_name
#node.master: true
#node.data: true
couchbase.password: password
couchbase.username: user
couchbase.maxConcurrentRequests: 1024

all ok (with my password. From couchbase and from browser).
Any questions?

2 Answers

« Back to question.

You must restart elasticsearch after editing the yml config file so that your changes can take effect.

curl -XPOST 'http://localhost:9200/_cluster/nodes/_local/_shutdown'
bin/elasticsearch

Or... if you have the service folder installed:

bin/service/elasticsearch restart

Then use the "couchbase.username" and "couchbase.password" values that you entered in this file when creating a cluster reference in Couchbase XDCR admin.

« Back to question.

Need a little more insight into your setup?

1. Do you have the HEAD plugin installed on ES Cluster?
2.a Did you create a vBucket in couchbase? Whats its name?
2.b Did you create the same index in ES for couchbase to point to with xdcr? Whats its name?
3. When you go to the ES cluster via a browser @ port 9091 does it prompt Username & password?