exception : {
"error": {
"root_cause": [
{
"type": "repository_exception",
"reason": "[my_backup] failed to create repository"
}
],
"type": "repository_exception",
"reason": "[my_backup] failed to create repository",
"caused_by": {
"type": "creation_exception",
"reason": "Guice creation errors:\r\n\r\n1) Error injecting constructor, RepositoryException[[my_backup] location [repo/my_backup] doesn't match any of the locations specified by path.repo because this setting is empty]\r\n at org.elasticsearch.repositories.fs.FsRepository.(Unknown Source)\r\n while locating org.elasticsearch.repositories.fs.FsRepository\r\n while locating org.elasticsearch.repositories.Repository\r\n\r\n1 error",
"caused_by": {
"type": "repository_exception",
"reason": "[my_backup] location [repo/my_backup] doesn't match any of the locations specified by path.repo because this setting is empty"
}
}
},
"status": 500
}
What you've shown there is still commented? Did you remove the # at the start of the line? You'll also need to restart Elasticsearch, config file changes are not live. I also don't think you can use a relative path there, I would suggest using the full path.
No it was not commented ,I used path.repo: [D:/elasticsearch-2.3.1/repo/my_backup] without # tag , i used full path of the file ,and i restarted the ES , i tried with the
PUT /_snapshot/my_backup
{
The original exception you posted is because you already have a repo "my_backup" registered that literally has the path repo/my_backup. Try deleting that repo and try again with the new settings.
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.