I’m trying to create Elasticsearch snapshot into riak s3 repository using cloud-aws (Elasticsearch plugin).
I’m using:
Red Hat Enterprise Linux Server release 7.2 (Maipo)
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
ElasticSearch 2.3.2 (lucene_version 5.5.0)
cloud-aws-2.3.2
For Elasticsearch I configured s3 in ES config file (elasticsearch.yml) .
cloud:
    aws:
            access_key: ********************
            secret_key: ****************************************
            endpoint: *******************
            protocol: http
            s3:
                    signer: S3SignerType 
When I register s3 as repository
curl -XPUT 'http://localhost:9200/_snapshot/s3_repo?verify=false' -d 'type": "s3", "settings": {"access_key": "************************", "secret_key": "******************************", "bucket": "es-bucket", "endpoint": "*******************", "signer": "AWS3SignerType"}}'
there is only one warning:
java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer; 
but register seems to be successful. When I list all my registred repositories there is my s3.
The problem is with creating snapshot – it’s always failed.
My snapshot:
{
 "snapshots": [ {
    "snapshot":"snapshot_2",
    "version_id":2030299,
    "version":"2.3.2",
    "indices":["test"],
    "state":"PARTIAL",
    "start_time":"2016-05-10T06:59:40.975Z",
    "start_time_in_millis":1462863580975,
    "duration_in_millis":124,
    "failures": [ { 
      "index":"test",
      "shard_id":4,
      "reason":"IndexShardSnapshotFailedException[java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;]; nested: NoSuchMethodError[java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;]; ",
      "node_id":"M7xutdTSTlqTGUelqNglrA",
      "status":"INTERNAL_SERVER_ERROR"
    },
    {
      "index":"test",
      "shard_id":2,
      "reason":"IndexShardSnapshotFailedException[java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;]; nested: NoSuchMethodError[java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;]; ",
      "node_id":"M7xutdTSTlqTGUelqNglrA",
      "status":"INTERNAL_SERVER_ERROR"
    },
    (...)
    } ],
    "shards" : {
      "total":5,
      "failed":5,
      "successful":0
    }
  } ]
I tested this plugin with Amazon s3 and it works without issues so I assume that is problem with riak s3. Am I right?
I've tested for both java - oracle  and open.
s3cmd and s3fs works propertly for this s3.