{
"error": {
"root_cause": [
{
"type": "repository_exception",
"reason": "[my_fs_backup] location [/mount/backups/my_fs_backup_location/] doesn't match any of the locations specified by path.repo because this setting is empty"
}
],
"type": "repository_exception",
"reason": "[my_fs_backup] failed to create repository",
"caused_by": {
"type": "repository_exception",
"reason": "[my_fs_backup] location [/mount/backups/my_fs_backup_location/] doesn't match any of the locations specified by path.repo because this setting is empty"
}
},
"status": 500
}
Kindly help me to resolve this issue, as im unable to create repository.
It looks like the problem is that you are using an absolute path that is a sub-path of your path.repo setting. Try setting the relative path
"location": "my_fs_backup_location"
instead. That should work fine. Also, did you set the setting on all your nodes? It seems from the error message that one of them is missing the setting.
I have tried both the absolute path and relative path but the error still same.
Actually, we have 2 master nodes and 6 elastic search nodes. So as initial step, we are trying in only one node for snapshot.
So we have placed the setting at only one node and trying to create the repository on the same.
Kindly let us know that our approach is right or wrong ?
Is it required to set the settings in all master & other nodes also ?
In order to register the shared file system repository it is necessary to mount the same shared filesystem to the same location on all master and data nodes.
As the backup location is registered for the cluster, every node needs access to the exact same path. Not every node in the cluster may own shards from every index, thus you can't register the repository for only one node.
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.