I created two clusters in 2 data centers and I am trying to do cross cluster replication , in one of the cluster I configured leader index and in the other I did the remote configuration pointing to the cluster of leader index , in the final step of creating follower index I am getting some issues .
PUT /my-test-index-follower/_ccr/follow
{
"remote_cluster" : "leader",
"leader_index" : "my-test-index"
}
Error
{
"error": {
"root_cause": [
{
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_ccr]"
}
],
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_ccr]"
},
"status": 400
}
I gave all permissions in my roles.yml file
list_indices:
reserved: false
hidden: false
static: false
cluster_permissions:
- "cluster:*"
index_permissions:
- index_patterns:
- '*'
allowed_actions:
- "indices:*"
- "read"
- "indices:monitor/stats"
- "indices:data/write/index"
And gave this role in roles_mapping.yml
list_indices:
reserved: true
hidden: false
backend_roles:
- "list_indices"
users:
- '*'
Can anyone please help me here