更新时间:2022-04-06 08:32:41
您有许多损坏的 translog 文件,您需要删除它们.您可以在 data/{clustername}/nodes/0/indices/logstash-2015.04.21/4/translog
中找到它,另一个在 data/{clustername}/nodes/0/索引/logstash-2015.03.16/1/translog
.也许其他人,但这是我从你提供的片段中可以看出的.当然,会丢失 translog 文件中的内容.
You have many corrupt translog files, which you need to delete. You can find it in data/{clustername}/nodes/0/indices/logstash-2015.04.21/4/translog
and another one in data/{clustername}/nodes/0/indices/logstash-2015.03.16/1/translog
. And maybe others, but this is what I can tell from the snippet you provided. Of course, will loose what is in the translog files.
如果索引不再有索引文件(data/{clustername}/nodes/0/indices/[index_name]
下仅存在_state
文件夹)这意味着该索引中不再有数据,此时您可以删除该索引.如果您仍然需要它,您需要重新索引该数据.如果您决定删除索引,则需要关闭节点并删除 data/{clustername}/nodes/0/indices
下的索引文件夹,就像您提到的(空的,只包含_state
文件夹).
If the indices don't have the index files anymore (only _state
folder exists under data/{clustername}/nodes/0/indices/[index_name]
) this means there is no data in that index anymore and at this point you can delete the index. You need to reindex that data, if you still need it. If you decide to delete the indices, you need to shutdown the node and delete the index folders under data/{clustername}/nodes/0/indices
that are like the one you mentioned (empty, containing just the _state
folder).