My code
.............
POST _snapshot/MyRepo
{"type": "fs","settings": {"location": "c:\MyRepo"}}
Error
..........
{
"error": "RemoteTransportException[[Bes][inet[/10.252.49.110:9300]][cluster:admin/repository/put]]; nested: RepositoryException[[MyRepo] failed to create repository]; nested: CreationException[Guice creation errors:\r\n\r\n1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [MyRepo] location [c:\MyRepo] doesn't match any of the locations specified by path.repo because this setting is empty\r\n at org.elasticsearch.repositories.fs.FsRepository.()\r\n at org.elasticsearch.repositories.fs.FsRepository\r\n at Key[type=org.elasticsearch.repositories.Repository, annotation=[none]]\r\n\r\n1 error]; nested: RepositoryException[[MyRepo] location [c:\MyRepo] doesn't match any of the locations specified by path.repo because this setting is empty]; ",
"status": 500
}
I think this won't work. Also I think you did not set path.repo in elasticsearch.yml file or you did not restart your node. [c:\MyRepo] doesn't match any of the locations specified by path.repo because this setting is empty]
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.