行动是治愈恐惧的良药,而犹豫、拖延将不断滋养恐惧。

elasticsearch创建快照仓库报错

Elasticsearch | 作者 canon | 发布于2016年09月19日 | 阅读数:8036

ES版本: V2.4.0
使用如下命令创建快照仓库时报错:
curl -XPUT 'http://192.168.184.33:9200/_snapshot/elk_bak' -d '{"type": "fs","settings": {"location": "/data/elk_bak","compress": true}}'

报错如下:
{"error":{"root_cause":[{"type":"repository_verification_exception","reason":"[elk_bak] [AvxdLuwDTGCif9MujDW8mw, 'RemoteTransportException[[logserver-es-02][192.168.184.34:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[elk_bak] store location [/data/elk_bak] is not accessible on the node [{logserver-es-02}{AvxdLuwDTGCif9MujDW8mw}{192.168.184.34}{192.168.184.34:9300}{master=true}]]; nested: NotSerializableExceptionWrapper[access_denied_exception: /data/elk_bak/tests-LGvwJbWKRvehdGtxQDmXdw/data-AvxdLuwDTGCif9MujDW8mw.dat];']]"}],"type":"repository_verification_exception","reason":"[elk_bak] [AvxdLuwDTGCif9MujDW8mw, 'RemoteTransportException[[logserver-es-02][192.168.184.34:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[elk_bak] store location [/data/elk_bak] is not accessible on the node [{logserver-es-02}{AvxdLuwDTGCif9MujDW8mw}{192.168.184.34}{192.168.184.34:9300}{master=true}]]; nested: NotSerializableExceptionWrapper[access_denied_exception: /data/elk_bak/tests-LGvwJbWKRvehdGtxQDmXdw/data-AvxdLuwDTGCif9MujDW8mw.dat];']]"},"status":500}
请大家帮忙看下是什么问题引起的,谢谢!
已邀请:

fhyes123 - ES小白

赞同来自: medcl

好了,解决了,是要在elasticsearch.yml里配置path.repo的路径,网上都直说后半截,唉,希望能帮到后面遇到这个坑的朋友

要回复问题请先登录注册