【问题标题】:AWS IAM role not working with Elasticsearch 5.0.0-alpha2, but works with 2.3 versionAWS IAM 角色不适用于 Elasticsearch 5.0.0-alpha2,但适用于 2.3 版本
【发布时间】: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


    【解决方案1】:

    这是他们最新版本中的一个错误。我在 github 上的 elasticsearch repo 中将此作为错误提出。似乎他们现在已经解决了这个问题。详情请参考以下链接: https://github.com/elastic/elasticsearch/issues/18652

    https://discuss.elastic.co/t/aws-iam-role-not-working-with-elasticsearch-5-0-0-alpha2-but-works-with-2-3-version/51347

    【讨论】:

      猜你喜欢
      • 2015-11-13
      • 2021-08-31
      • 2022-01-26
      • 1970-01-01
      • 2019-12-13
      • 2012-01-27
      • 1970-01-01
      • 2018-05-20
      • 1970-01-01
      相关资源
      最近更新 更多