o módulo de restauração e instantâneo de elasticidade repository_exception

1

Estou usando elk-docker e tentando seguir Instantâneo e restauração | Referência Elasticsearch [2.4] | Elastic e obtendo o seguinte erro:

# curl --request PUT --data '{ "type": "fs", "settings": {"compress": true, "location": "/run/elasticsearch/backups" } }' localhost:9200/_snapshot/my_backup?pretty
{
  "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:\n\n1) Error injecting constructor, RepositoryException[[my_backup] location [/run/elasticsearch/backups] doesn't match any of the locations specified by path.repo because this setting is empty]\n  at org.elasticsearch.repositories.fs.FsRepository.<init>(Unknown Source)\n  while locating org.elasticsearch.repositories.fs.FsRepository\n  while locating org.elasticsearch.repositories.Repository\n\n1 error",
      "caused_by" : {
        "type" : "repository_exception",
        "reason" : "[my_backup] location [/run/elasticsearch/backups] doesn't match any of the locations specified by path.repo because this setting is empty"
      }
    }
  },
  "status" : 500
}
# 

Por favor, conselhos.

    
por alexus 25.09.2016 / 21:01

1 resposta

0

Adicionei path.repo em elasticsearch.yml :

# grep path.repo elasticsearch.yml 
path.repo: /run/elasticsearch/backups
# 

seguido por docker-compose build & docker-compose up e curl novamente:

# curl --request PUT --data '{ "type": "fs", "settings": {"compress": true, "location": "/run/elasticsearch/backups" } }' localhost:9200/_snapshot/my_backup?pretty
{
  "acknowledged" : true
}
#
    
por 26.09.2016 / 03:54