How do i go about shrinking an index, which has shards over multiple nodes ?
I keep getting this error
{
"error": {
"root_cause": [
{
"type": "remote_transport_exception",
"reason": "[pronto-g3-1577817661-3-1463179-pronto][10.174.157.164:9300][indices:admin/resize]"
}
],
"type": "illegal_state_exception",
"reason": "index time_logs_data_2020_06_16 must have all shards allocated on the same node to shrink index"
},
"status": 500
}
I would also like to explore if there's any way of enforcing future indices to be created on the same node, so i can shrink them later on when they become read only. Thanks in advance!
Wonder why cluster has to be green ... makes sense for index to be green, I guess - though what about replicas? Ah, says the node only needs a copy of each shard, not all the shards (can be some replicas, though hard to do that in practice).
Note that doc is really not right as says the API call "three conditions can be achieved" - but one condition is green cluster; pretty sure no API call can make a cluster green
Thanks - is there a link/dock on best way to do that; seen the awesome Github doc repo, but not sure how to raise issue on specific page (vs. the 'project').
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.