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
}
-
您是否安裝了[AWS Cloud插件](https://github.com/elastic/elasticsearch-cloud-aws#s3-repository)? – Val
@Val yes!我安裝版本庫s3 –
我得到同樣的問題,如果我找到解決方案,我會在這裏更新它。如果您已經發現問題,請告訴我。 – animageofmine