修改配置文件添加备份数据目录
elasticsearch.yml添加下面配置,集群里所有的配置都要添加
##备份及迁移目录path.repo: ["/home/es_backup"]
在/home目录下创建es_backup文件夹
[root@node03 home]# mkdir es_backup
集群模式,需要3个节点都能共享同一个目录,需要挂载目录盘
{"error": {"root_cause": [{"type": "repository_verification_exception","reason": "[my_backup] [[ywPSKe_hQZKI52htpLmbpw, 'RemoteTransportException[[node-1][172.16.4.200:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/home/es_backup] cannot be accessed on the node [{node-1}{ywPSKe_hQZKI52htpLmbpw}{sv9teiXOTx-QsDW_jFNtbQ}{172.16.4.200}{172.16.4.200:9300}{dilmrt}{ml.machine_memory=3174993920, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]. This might indicate that the store [/home/es_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node]; nested: NoSuchFileException[/home/es_backup/tests-w_Ec8RSESeWusaf3wCyt5Q/master.dat];'], [ed3fBg7oQHmv0LbCpyfyog, 'RemoteTransportException[[node-3][172.16.4.211:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/home/es_backup] cannot be accessed on the node [{node-3}{ed3fBg7oQHmv0LbCpyfyog}{ln79vfUnT1qQg0toCcEbgw}{172.16.4.211}{172.16.4.211:9300}{dilmrt}{ml.machine_memory=1041264640, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]. This might indicate that the store [/home/es_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node]; nested: NoSuchFileException[/home/es_backup/tests-w_Ec8RSESeWusaf3wCyt5Q/master.dat];']]"}],"type": "repository_verification_exception","reason": "[my_backup] [[ywPSKe_hQZKI52htpLmbpw, 'RemoteTransportException[[node-1][172.16.4.200:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/home/es_backup] cannot be accessed on the node [{node-1}{ywPSKe_hQZKI52htpLmbpw}{sv9teiXOTx-QsDW_jFNtbQ}{172.16.4.200}{172.16.4.200:9300}{dilmrt}{ml.machine_memory=3174993920, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]. This might indicate that the store [/home/es_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node]; nested: NoSuchFileException[/home/es_backup/tests-w_Ec8RSESeWusaf3wCyt5Q/master.dat];'], [ed3fBg7oQHmv0LbCpyfyog, 'RemoteTransportException[[node-3][172.16.4.211:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/home/es_backup] cannot be accessed on the node [{node-3}{ed3fBg7oQHmv0LbCpyfyog}{ln79vfUnT1qQg0toCcEbgw}{172.16.4.211}{172.16.4.211:9300}{dilmrt}{ml.machine_memory=1041264640, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]. This might indicate that the store [/home/es_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node]; nested: NoSuchFileException[/home/es_backup/tests-w_Ec8RSESeWusaf3wCyt5Q/master.dat];']]"},"status": 500}
