I want to take snapshot and restore it in another server.
I have added in Elasticsearch.yml file path.repo and location path.repo: "D:\ES_Backup"
When I am trying to register repo it gives me error "reason": "[ES_Backup] location [D:\ES_Backup] doesn't match any of the locations specified by path.repo because this setting is empty"
Can you help me? What am I doing wrong?
P.S. also I tried in Elasticsearch.yml file to write repo path in these ways:
path.repo: ["D:\ES_Backup"]
path.repo: D:\ES_Backup
path.repo: "D:/ES_Backup"
path.repo: ["D:/ES_Backup"]
Yes, changed it and restarted service. I have single node.
Here is message from elasticsearch_server.json file
[netty-common-4.1.49.Final.jar:4.1.49.Final]",
"at java.lang.Thread.run(Thread.java:832) [?:?]",
"Caused by: org.elasticsearch.repositories.RepositoryException: [ES_Backup] location [D:\\ES_Backup] doesn't match any of the locations specified by path.repo because this setting is empty",
"at org.elasticsearch.repositories.fs.FsRepository.<init>(FsRepository.java:98) ~[elasticsearch-7.10.1.jar:7.10.1]",
"at org.elasticsearch.repositories.RepositoriesModule.lambda$new$0(RepositoriesModule.java:48) ~[elasticsearch-7.10.1.jar:7.10.1]",
"at org.elasticsearch.repositories.Repository$Factory.create(Repository.java:75) ~[elasticsearch-7.10.1.jar:7.10.1]",
"at org.elasticsearch.repositories.RepositoriesService.createRepository(RepositoriesService.java:499) ~[elasticsearch-7.10.1.jar:7.10.1]",
"... 81 more"] }
Here is log from Elasticsearch.log file
[2022-02-02T14:07:37,239][WARN ][o.e.r.f.FsRepository ] [ELASTIC01] The specified location [D:\ES_Backup] should start with a repository path specified by the path.repo setting, but the path.repo setting was not set on this node
[2022-02-02T14:07:37,239][WARN ][o.e.r.RepositoriesService] [ELASTIC01] failed to create repository [fs][ES_Backup]
org.elasticsearch.repositories.RepositoryException: [ES_Backup] location [D:\ES_Backup] doesn't match any of the locations specified by path.repo because this setting is empty
Another change such as change of some node roles in Elasticsearch.yml take effect?
What will happen if for example add data_frozen, retart and GET /_nodes ?
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.