The status of my cluster is RED. It seems it will be green if I delete 2 UNASSIGNED ".watches" from the following log. How can I fix this? Thanks.
Blockquote
$ curl -XGET 'http://xxx:9200/_cat/shards'
.watcher-history-3-2017.09.15 0 r STARTED 7200 5.3mb 10.99.30.38 node1
.monitoring-es-6-2017.11.29 0 r STARTED 741817 522.9mb 10.99.30.34 node2
.monitoring-es-6-2017.11.29 0 p STARTED 741817 520.7mb 10.99.23.41 node2
.watches 0 p UNASSIGNED
.watches 0 r UNASSIGNED
.watcher-history-3-2017.10.06 0 p STARTED 6537 5.6mb 10.99.30.34 nod3
Hi,
Before deleting or moving the corrupt shards out of the way, can you cat or strings on them to check the content.
Did you recently face any disk or power issues?
This is the cat result. This node already exclude from cluster by re-routing. And the data seems very old to me. It can be deleted.
I dont't know the reason. Maybe because of power issue.
the reason seems to indicate that a file has a size of zero, even though it should have contents. This indicates an issue with the files on disk (this can be an clearing of the file by an admin, a corrupt disk or a bug in lucene, an unfinished recovery that was aborted before the other node completely vanished).
if you have more indications what happened due to having more logs, I'd be happy to take a look.
Can you explain what you mean with 'This node already exclude from cluster by re-routing' - has this node split away from the cluster and still is a master? If thats the case, then you should check your cluster configuration, especially with regards to the minimum master nodes setting.
Apart from that, if you dont need that index, you can safely delete it. I suppose you are not using watcher, but only monitoring - monitoring in turn creates watches - and they get recreated over time.
But I tried this command to set number_of_replicas to 0 of index ".watches". Glad it worked: one UNASSIGNED ".watches" were removed. I still got one left. How to remove this last one?
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.