Hi,
I am successfully debugging elasticsearch 2.4 with Intellij, but I want to be able to step through the s3 snapshot plugin. I can't seem to install it and was looking for some help as to how to.
My ultimate goal is to add support for KMS encryption in 2.4 (which is the version we have production) but then port the patch to 5.x and submit it, but before I can actually write some code I'd like to be able to step though existing code.
I am stuck here:
curl -XPUT 'localhost:9200/_snapshot/s3_repository?verify=false&pretty' -H 'Content-Type: application/json' -d'
{
"type": "s3",
"settings": {
"bucket": "my_s3_bucket",
"region": "us-east1"
}
}
'
{
"error" : {
"root_cause" : [ {
"type" : "repository_exception",
"reason" : "[s3_repository] failed to create repository"
} ],
"type" : "repository_exception",
"reason" : "[s3_repository] failed to create repository",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "Unknown [repository] type [s3]"
}
},
"status" : 500
}
Note, when I get the 500, I can step through the code and see that plugin is not installed.
Also, this confirms my problem:
curl -i -H "Accept: application/json" "localhost:9200/_cat/plugins?v"
HTTP/1.1 200 OK
Content-Type: text/plain; charset=UTF-8
Content-Length: 33
name component version type url
Any pointers as to how I can install the org.elasticsearch.repositories.s3.S3Repository
so that I can step though would be greatly appreciated.
Thanks in advance.