使用 Curator 的 elasticsearch 快照失败

Snapshot of elasticsearch using Curator failing

我正在尝试拍摄名称为 reincarnation.2015.07.21 类型的 ES 索引的快照,并使用以下 curator 命令将其存储在 Amazon S3 中:-

curator --host locahost --port 9200  snapshot --repository walle_elk_archive indices --older-than 10 --time-unit days --timestring %Y.%m.%d --prefix reincarnation

但我收到以下错误:-

2015-09-03 17:18:14,938 INFO      Job starting: snapshot indices
2015-09-03 17:18:14,938 WARNING   Overriding default connection timeout.  New timeout: 21600
ERROR: Connection failure.

我已经在 elasticsearch.yaml 中添加了 aws 密钥,如下所示。之后重启elasticsearch。

################################## AWS Cloud  ################################
cloud.aws.access_key: <SomeMixofNumbersandLetters>
cloud.aws.secret_key: <CanOnlyBeObtainedUponCreationOfAccessKeyDon'tLose>

AWS Plugin也已经添加到ES节点,之后重启了节点。

我使用下面的命令创建了 repo,它是成功的

$ curl -XPUT '<hostname>:9200/_snapshot/walle_elk_archive' -d '
{
  "type": "s3",
  "settings": {
     "bucket": "my_bucket_name",
     "region": "your_aws_region",
     "access_key": "your_access_key", 
     "secret_key": "your_secret_key" 
  }
}'

谁能告诉我

  1. 我做错了什么?
  2. 连接失败是什么意思?是 curator 无法连接到 elasticsearch 还是 elasticsearch 无法连接到 S3?我在 elasticsearch 日志中找不到任何内容。

    • 馆长版本 3.3.0
    • ES 版本 1.5.1

您在 curator 命令行中拼错了 locahost...除非这是 elasticsearch 运行ning 所在机器的真实名称,在这种情况下,请确保可以从以下位置访问该机器运行 策展人 运行ning

的机器
curl locahost:9200