@GuyS The opensearch-node tool exists and is located in /usr/share/opensearch/bin folder.
[opensearch@e05867a825e8 ~]$ ./bin/opensearch-node --help
A CLI tool to do unsafe cluster and index manipulations on current node
Commands
--------
repurpose - Repurpose this node to another cluster-manager/data/warm role, cleaning up any excess persisted data
unsafe-bootstrap - Forces the successful election of the current node after the permanent loss of the half or more cluster-manager-eligible nodes
detach-cluster - Detaches this node from its cluster, allowing it to unsafely join a new cluster
override-version - Overwrite the version stored in this node's data path with [3.1.0] to bypass the version compatibility checks
remove-settings - Removes persistent settings from the cluster state
remove-customs - Removes custom metadata from the cluster state
How did you deploy your cluster?
If you don’t care about the data, you can try these steps.
Exclude the node from routing allocation. This will evict all of the shards to other remaining nodes.
PUT _cluster/settings
{
"transient": {
"cluster.routing.allocation.exclude._name": ""
}
}