我使用Elasticsearch 1.4和Ubuntu 12.04.3 LTS.Trying創建本地elasticsearch快照註冊一個快照庫。我指的這個website不能在Elasticsearch
本網站的步驟是在Windows Elasticsearch工作的罰款。如果我在Ubuntu Elasticsearch上註冊存儲庫。它在消息下面發射。
此查詢我跑什麼
curl -XPUT http://xx.xx.xx.xx:9200/_snapshot/es_snap -d '{
"type": "fs",
"settings": {
"location": "/mount/backups/my_backup"
}
}'
我得到這個響應。
{
"error":"RepositoryException[[es_snap] failed to create repository];
nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.common.blobstore.BlobStoreException:
Failed to create directory at [
D:/data/es_snapshot_bkup/es_snapshot_repo]\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
];
nested: BlobStoreException[Failed to create directory at [/mount/backups/my_backup]]; ",
"status":500
}
我已經有了這個解決方案的兄弟..但我問,從創建curl命令的存儲庫(不MKDIR和chmod) – BasK 2015-01-29 04:38:24
在我看來,有#4中的錯字('en_snap' - >'es_snap') – potar 2016-06-06 07:09:36
別你認爲在備份文件夾中存在777個燙髮是否過於寬泛並存在安全問題? – Daniel 2016-07-14 08:17:46