【问题标题】:Elasticsearch cluster with Shield - Node not joining to cluster带有 Shield 的 Elasticsearch 集群 - 节点未加入集群
【发布时间】:2016-07-05 07:55:11
【问题描述】:

我有 2 个节点 ELK 集群配置了 Shield 插件,即集成了 LDAP。 集群状态显示为黄色。当我使用 curl 运行集群状态/健康命令时,我看不到两个节点,而只看到该节点的结果。即数据节点数为1

elasticsearch.yml 节点 - 1

 cluster.name: TestELKCluster
 node.name: ${HOSTNAME}
 network.host: [_eth0_,_local_]
 index.number_of_shards: 2
 index.number_of_replicas: 1
 shield:
  authc:
    realms:
      ldap1:
        type: ldap
        order: 0
         url: "ldaps://abc.xyz.com:636"
        user_search:
          base_dn: "c=in, ou=abc, o=xyz.com"
          attribute: mail
        group_search:
          base_dn: "c=in, ou=abc, o=xyz.com"
        files:
          role_mapping: "/etc/elasticsearch/shield/role_mapping.yml"
        unmapped_groups_as_roles: false
        user_search.pool.health_check.enabled: false
 shield.audit.enabled: true
 node.master: true
 node.data: true
 discovery.zen.ping.multicast.enabled: false
 discovery.zen.ping.unicast.hosts: ["otherELKnodeIP"]

节点 2

 cluster.name: TestELKCluster
 node.name: ${HOSTNAME}
 network.host: [_eth1_,_local_]
 shield:
  authc:
    realms:
      ldap1:
        type: ldap
        order: 0
        url: "ldaps://abc.xyz.com:636"
        user_search:
          base_dn: "c=in, ou=abc, o=xyz.com"
          attribute: mail
        group_search:
          base_dn: "c=in, ou=abc, o=xyz.com"
        files:
          role_mapping: "/etc/elasticsearch/shield/role_mapping.yml"
        unmapped_groups_as_roles: false
        user_search.pool.health_check.enabled: false
 shield.audit.enabled: true
 discovery.zen.ping.multicast.enabled: false
 discovery.zen.ping.unicast.hosts: ["otherELKnodeIP"]

【问题讨论】:

    标签: elasticsearch elastic-stack


    【解决方案1】:

    我可以通过从主服务器中删除系统密钥来解决此问题。我们没有使用部落节点,但不知何故我在 ELK 主节点上生成了系统密钥,这是罪魁祸首。

    问候, 维诺德

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-02-16
      • 1970-01-01
      • 2022-01-03
      • 2017-02-07
      • 1970-01-01
      • 2014-05-21
      • 1970-01-01
      相关资源
      最近更新 更多