在elasticsearch 7.3.2中的fs中创建快照时出错?

Ama*_*ash 2 elasticsearch elastic-stack

我正在尝试在elasticsearch中创建快照,我已经在elasticsearch.yml中定义了path.repo,正确指向文件夹elasticsearch_backup并且它具有权限

path.repo: /home/ubuntu/elasticsearch-backup

Run Code Online (Sandbox Code Playgroud)
drwxr-xr-x 2 elasticsearch elasticsearch      4096 Dec 12 06:55 elasticsearch-backup/

Run Code Online (Sandbox Code Playgroud)

我正在使用 kibana 的这个 api -

PUT /_snapshot/elasticsearch-backup
{
  "type": "fs",
  "settings": {
    "compress": true,
    "location": "/home/ubuntu/elasticsearch-backup"
  }
}

Run Code Online (Sandbox Code Playgroud)

然后我得到的错误是 -

{
  "error": {
    "root_cause": [
      {
        "type": "repository_verification_exception",
        "reason": "[elasticsearch-backup] [[5_cX7DhMSw2KgPrVMEm3Gg, 'RemoteTransportException[[elastic-data-node-02][MY IP.11:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[elasticsearch-backup] a file written by master to the store [/home/ubuntu/elasticsearch-backup] cannot be accessed on the node [{elastic-data-node-02}{5_cX7DhMSw2KgPrVMEm3Gg}{KF6p34P9TSyp81QJQ56kgQ}{MY IP.11}{MY IP.11:9300}{di}{ml.machine_memory=8339873792, xpack.installed=true, ml.max_open_jobs=20}]. This might indicate that the store [/home/ubuntu/elasticsearch-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];'], [LhHj2udCRCWy7gt5iVQMsw, 'RemoteTransportException[[elastic-data-node-01][MY IP.10:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[elasticsearch-backup] a file written by master to the store [/home/ubuntu/elasticsearch-backup] cannot be accessed on the node [{elastic-data-node-01}{LhHj2udCRCWy7gt5iVQMsw}{S1TeQwE7Sjq6B__obrDEow}{MY IP.10}{MY IP.10:9300}{di}{ml.machine_memory=8339873792, xpack.installed=true, ml.max_open_jobs=20}]. This might indicate that the store [/home/ubuntu/elasticsearch-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];']]"
      }
    ],
    "type": "repository_verification_exception",
    "reason": "[elasticsearch-backup] [[5_cX7DhMSw2KgPrVMEm3Gg, 'RemoteTransportException[[elastic-data-node-02][MY IP.11:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[elasticsearch-backup] a file written by master to the store [/home/ubuntu/elasticsearch-backup] cannot be accessed on the node [{elastic-data-node-02}{5_cX7DhMSw2KgPrVMEm3Gg}{KF6p34P9TSyp81QJQ56kgQ}{MY IP.11}{MY IP.11:9300}{di}{ml.machine_memory=8339873792, xpack.installed=true, ml.max_open_jobs=20}]. This might indicate that the store [/home/ubuntu/elasticsearch-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];'], [LhHj2udCRCWy7gt5iVQMsw, 'RemoteTransportException[[elastic-data-node-01][MY IP.10:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[elasticsearch-backup] a file written by master to the store [/home/ubuntu/elasticsearch-backup] cannot be accessed on the node [{elastic-data-node-01}{LhHj2udCRCWy7gt5iVQMsw}{S1TeQwE7Sjq6B__obrDEow}{MY IP.10}{MY IP.10:9300}{di}{ml.machine_memory=8339873792, xpack.installed=true, ml.max_open_jobs=20}]. This might indicate that the store [/home/ubuntu/elasticsearch-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];']]"
  },
  "status": 500
}

Run Code Online (Sandbox Code Playgroud)

Val*_*Val 5

这可能表明存储 [/home/ubuntu/elasticsearch-backup] 未在此节点和主节点之间共享,或者存储上的权限不允许读取主节点写入的文件

如果您有多个节点并且想要使用共享文件系统存储库(fs,您需要有一个...共享文件系统所有节点都可以访问的

为了注册共享文件系统存储库,需要将相同的共享文件系统安装到所有主节点和数据节点上的相同位置。