我要去弹性恢复.当使用2.x版本时,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": "*************"
}}'
Run Code Online (Sandbox Code Playgroud)
但升级到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
}
-
Run Code Online (Sandbox Code Playgroud)