问答详情
源自:2-4 分布式安装

为什么我启动三个es后 head中只显示了一个master节点

我想问下老师。。为什么我启动三个es后  head中只显示了一个master节点?

提问者:bluce 2018-03-26 17:51

个回答

  • 少林码僧
    2018-11-18 23:24:35

    [elastic@localhost local]$ curl http://127.0.0.1:9201/_cat/nodes

    {"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}


  • xz198
    2018-08-09 22:51:26

    discovery.zen.minimum_master_nodes: 2

    discovery.zen.ping.unicast.hosts: ["ip"]

    node.master: true

    每个节点的 elasticsearch.yml 配置文件中 都应加上以上配置

    discovery.zen.minimum_master_nodes---节点总数/2+1 (3个的话写2就行)


  • 慕丝8126143
    2018-06-16 12:06:13

    我也是

  • HUANG96
    2018-06-14 17:24:12

    跟着配置了,我也只能看到一个master,还要配置啥


  • Andy330
    2018-06-12 22:18:44

    这个按照老师的操作,集群根本关联不上,怀疑如果用苹果笔记本,本地访问,应该没问题

  • java_fighting
    2018-03-26 18:59:51

    https://img3.mukewang.com/5ab8d2250001965513230445.jpg 红圈为主节点,其他为工作结点,这是配置了集群,才可以看到这个效果。

  • java_fighting
    2018-03-26 18:58:37

    https://img3.mukewang.com/5ab8d2250001965513230445.jpg 红圈为主节点,其他为工作结点,这是配置了集群,才可以看到这个效果。