Unable to start cross cluster replication

I am getting below error when trying to start replication using the curl command.
I have installed the cross cluster plugin on both the clusters.
I am able to cross cluster connectivity as mentioned in step (cross-cluster-replication/HANDBOOK.md at main · opendistro-for-elasticsearch/cross-cluster-replication · GitHub)

I skipped the security steps after that as I have removed the security plugin.
I added the index and data in the leader cluster.
After that when I try to start the replication at follower I get below error response.
Any help is appreciated.

curl -X PUT
https://${FOLLOWER}/_opendistro/_replication/follower-01/_start?pretty”
-H ‘Content-type: application/json’
-d ‘{“remote_cluster”:“leader-cluster”, “remote_index”: “leader-01”}’

Error:
{
“error”: “no handler found for uri [/_opendistro/_replication/follower-01/_start?pretty] and method [PUT]”
}

1 Like

Mostly it is a command error:
Can you try in dev tool:

PUT _opendistro/_replication/follower-01/_start?pretty
{
  "remote_cluster": "leader-cluster",
  "remote_index": "test_1shard"
}

Hi @swastiksen

Have you changed the following settings of /etc/elasticsearch/elasticsearch.yml and restarted elasticsearch ?

opendistro_security.unsupported.inject_user.enabled: true
opendistro_security.nodes_dn_dynamic_config_enabled: true
node.remote_cluster_client: true

Cindy

1 Like