To use this feature, users should create remote cluster first for the source cluster.
curl -u shiva:shiva -XPUT 'localhost:8902/hippo/v1/_ccr/create_remote_cluster?pretty' -H 'Content-Type: application/json' -d'{
"remote_cluster_name" : "cluster1",
"master_group" : "172.29.203.189:26841,172.29.203.189:26851,172.29.203.189:26861",
"username" : "shiva",
"password" : "shiva"
}';
Result:
{
"acknowledged" : true
}
Parameter description:
Parameters | Description | Required |
---|---|---|
remote_cluster_name | Remote cluster name | Yes |
master_group | Master group of remote cluster | Yes |
username | Username used to connect to remote cluster | Yes |
password | Password used to connect to remote cluster | Yes |