Hello All,
How to update the index.unassigned.node_left.delayed_timeout
dynamic setting in opensearch. like in elasticsearch Delaying allocation when a node leaves | Elasticsearch Guide [7.17] | Elastic.
I have tried in many ways but no luck. Could anyone please help me out.
[opensearch@observability-opensearch ~]$ curl -X PUT "https://localhost:9200/_all/_settings?pretty" -k -u admin -H 'Content-Type: application/json' -d'
{
"settings": {
"index.unassigned.node_left.delayed_timeout": "5m"
}
}
'
Enter host password for user 'admin':
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"
}
],
"type" : "security_exception",
"reason" : "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"
},
"status" : 403
}
[opensearch@observability-opensearch ~]$ curl -X PUT "https://localhost:9200/_all/_settings?pretty" -k -u admin -H 'Content-Type: application/json' -d'
{
"persistent": {
"index.unassigned.node_left.delayed_timeout": "5m"
}
}
'
Enter host password for user 'admin':
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"
}
],
"type" : "security_exception",
"reason" : "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"
},
"status" : 403
}
Thanks,
Kishore