使用 nohup 或 disown 如果你要让某个进程运行在后台。

ElasticSearch 如何删除snapshot策略

Elasticsearch | 作者 hhalei | 发布于2021年12月27日 | 阅读数:1604

ES版本:5.4.2
 
背景说明:
    公司有一个项目集群比较老了,用的ES5.4.2,  之前专门搭建了一个小的Hadoop集群,用来做es snapshot备份,后来业务调整,把Hadoop集群给下了,但是es上的snapshot策略没有删除,现在每次重启ES节点后,都会去尝试重连hdfs,每20秒重连一次,一共要重连45次,日志如下:
 
[2021-12-23T16:50:55,528][INFO ][o.a.h.i.Client           ] Retrying connect to server: x.x.x.x/x.x.x.x:8020. Already tried 40 time(s); maxRetries=45
[2021-12-23T16:51:15,549][INFO ][o.a.h.i.Client ] Retrying connect to server: x.x.x.x/x.x.x.x:8020. Already tried 41 time(s); maxRetries=45
[2021-12-23T16:51:35,557][INFO ][o.a.h.i.Client ] Retrying connect to server: x.x.x.x/x.x.x.x:8020. Already tried 42 time(s); maxRetries=45
[2021-12-23T16:51:55,577][INFO ][o.a.h.i.Client ] Retrying connect to server: x.x.x.x/x.x.x.x:8020. Already tried 43 time(s); maxRetries=45
[2021-12-23T16:52:15,598][INFO ][o.a.h.i.Client ] Retrying connect to server: x.x.x.x/x.x.x.x:8020. Already tried 44 time(s); maxRetries=45

 
我们尝试过使用官方提供的接口删除repository:
 
DELETE /_snapshot/my_backup

命令执行后,es集群各节点还是回去重连hdfs,每20秒重连一次,共重连45次,然后删除repository的命令就执行超时了。
 
现在有其他办法删除hdfs的snapshot备份策略吗?
 
 
 
已邀请:

要回复问题请先登录注册