【发布时间】:2016-09-28 01:24:03
【问题描述】:
我正在尝试将 AWS IAM 角色与 Elasticsearch 5.0.0-alpha2 和 EC2 发现插件一起使用,但它似乎无法正常工作,并且出现以下错误:
"从 AWS API 检索实例列表时出现异常:授权 标头或参数格式不正确。 (服务:AmazonEC2; 状态码:401;错误代码:AuthFailure”
我在 jdk8 中使用以下配置:
cluster.name: "test-cluster"
cloud.aws.region: "us-west-2"
cloud.aws.ec2.region: "us-west-2"
cloud.aws.ec2.protocol: "http"
discovery.type: "ec2"
#bootstrap.mlockall: true
node.master: true
node.data: false
node.name: ${HOSTNAME}-Master
discovery.zen.minimum_master_nodes: 1
network.host: _ec2:privateIp_
discovery.ec2.any_group: true
discovery.ec2.groups : sg-9d856tfe
但是,相同的配置适用于 Elasticsearch 2.3 版本。有人在使用最新的 Elasticsearch 版本 5.0.0-alpha2 时遇到过同样的问题吗?
【问题讨论】:
标签: amazon-web-services elasticsearch amazon-ec2 elasticsearch-plugin