I disabled shards allocation using
curl -XPUT “http://username:password@host:port/_cluster/settings” -d
'{
"transient" :{
"cluster.routing.allocation.exclude._ip" : "X.X.X.X"
}
}'
command.
Then again enabled using,
curl -XPUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'
command with username and password.
The above reallocation command didn't work.
Still unable to re-allocate shards on this node.
How to reallocate shards on this node?
Thank You!