2016-12-14 57 views
1

我要去elasticsearch恢復。 當使用2.x版本時,s3版本庫寄存器很好的通過腳本。elasticsearch 5.0 s3存儲庫註冊錯誤

curl -XPUT 'http://'ip':9200/_snapshot/'repo_2016-12-14/?pretty'' -d ' 
{"type": "s3", 
"settings": 
{ "bucket": "'patch-backup'", 
"base_path" : "elasticsearch/'2016-12-14'", 
"region": "ap-southeast-1", 
"access_key": "************", 
"secret_key": "*************" 
}}' 

但是當升級到5.0版本時, 上面的腳本無法運行。並顯示此錯誤

{"error" : { 
"root_cause" : [ 
{ 
"type" : "repository_exception", 
"reason" : "[repo_2016-12-14] repository type [s3] does not exist" 
} 
], 
"type" : "repository_exception", 
"reason" : "[repo_2016-12-14] repository type [s3] does not exist" 
}, 
"status" : 500 
} 
- 
+0

您是否安裝了[AWS Cloud插件](https://github.com/elastic/elasticsearch-cloud-aws#s3-repository)? – Val

+0

@Val yes!我安裝版本庫s3 –

+0

我得到同樣的問題,如果我找到解決方案,我會在這裏更新它。如果您已經發現問題,請告訴我。 – animageofmine

回答

-1

我有同樣的問題。按照說明,我的錯誤僅僅是將插件安裝在數據節點上,而不是集羣中的每個節點上。一旦我在主節點上安裝了插件,它也能正常工作。

4

您需要在所有集羣節點上安裝repository-s3插件,然後重新啓動該節點。否則,該插件不可用。