快照elasticsearch使用馆长失败的
问题描述:
我试图采取型reincarnation.2015.07.21
具有名字ES指数的快照,并将其存储在亚马逊S3与下面curator命令: -快照elasticsearch使用馆长失败的
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插件也已添加到ES节点,然后重新启动节点。
我已创建使用下面的命令回购,这是成功的
$ 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"
}
}'
有一个人可以让我知道
- 我做错了吗?
-
此连接失败的含义是什么?是否馆长无法连接到elasticsearch或elasticsearch无法连接到S3?我在elasticsearch日志中找不到任何东西。
- 馆长版本3.3.0
- ES版本1.5.1
答
您在馆长命令行拼错locahost
...除非这是机器,其中elasticsearch的真实姓名在这种情况下,确保可以通过运行管理员的机器访问此机器
curl locahost:9200
我的不好:(。谢谢imotov :)。 – tuk