数据节点找不到主节点,但主节点可以在Elasticsearch中找到数据节点

时间:2016-07-29 04:36:10

标签: elasticsearch

Here is log info as below:

    [2016-07-29 00:05:43,764][INFO ][cluster.service ] [data_node_144] detected_master {master_node_200}{KPQpU4cdRyiqCT488ZFglg}{192.168.201.200}{192.168.201.200:9300}{data=false, master=true}, added {{master_node_200}{KPQpU4cdRyiqCT488ZFglg}{192.168.201.200}{192.168.201.200:9300}{data=false, master=true},}, reason: zen-disco-receive(from master [{master_node_200}{KPQpU4cdRyiqCT488ZFglg}{192.168.201.200}{192.168.201.200:9300}{data=false, master=true}])
    [2016-07-29 00:05:43,915][INFO ][discovery.zen ] [data_node_144] master_left [{master_node_200}{KPQpU4cdRyiqCT488ZFglg}{192.168.201.200}{192.168.201.200:9300}{data=false, master=true}], reason [transport disconnected]
    [2016-07-29 00:05:43,974][WARN ][discovery.zen ] [data_node_144] master left (reason = transport disconnected), current nodes: {{data_node_144}{LkMlU7XeSqC-j0K_o05iUw}{192.168.201.144}{192.168.201.144:9300}{master=false},{data_node_148}{FKdVDjWjQ4eykqkMNRNxUQ}{192.168.201.148}{192.168.201.148:9300}{master=false},{master_node_102}{zQR04axjRxGFhmVxw3N4Pg}{192.168.201.102}{192.168.201.102:9300}{data=false, master=true},{master_node_103}{v83JEFKaQa6gXrG8o5xfBw}{192.168.201.103}{192.168.201.103:9300}{data=false, master=true},{data_node_145}{dF-4DvGlT22v2vI68PrIkQ}{192.168.201.145}{192.168.201.145:9300}{master=false},{data_node_146}{TDPHZWaRRm-lTfM2EM3bPQ}{192.168.201.146}{192.168.201.146:9300}{master=false},{master_node_101}{eqxEaFh8TeqR4VmhKPdT_g}{192.168.201.101}{192.168.201.101:9300}{data=false, master=true},{data_node_147}{-evmqt_nSV-RSeXTZ2w15w}{192.168.201.147}{192.168.201.147:9300}{master=false},}
    [2016-07-29 00:05:43,974][INFO ][cluster.service ] [data_node_144] removed {{master_node_200}{KPQpU4cdRyiqCT488ZFglg}{192.168.201.200}{192.168.201.200:9300}{data=false, master=true},}, reason: zen-disco-master_failed ({master_node_200}{KPQpU4cdRyiqCT488ZFglg}{192.168.201.200}{192.168.201.200:9300}{data=false, master=true})
    [2016-07-29 00:05:43,974][WARN ][cluster.service ] [data_node_144] failed to notify ClusterStateListener
    java.lang.IllegalStateException: master not available when registering auto-generated license
    at org.elasticsearch.license.plugin.core.LicensesService.requestTrialLicense(LicensesService.java:749)
    at org.elasticsearch.license.plugin.core.LicensesService.clusterChanged(LicensesService.java:483)
    at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610)
    at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772)
    at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
    at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

and the configure of data node:

    cluster.name: es_cluster
    node.name: data_node_144
    node.master: false
    node.data: true
    path.data: /data/es/data
    path.logs: /data/es/logs
    network.host: 0.0.0.0
    network.publish_host: 0.0.0.0
    gateway.recover_after_nodes: 2
    discovery.zen.ping_timeout: 60s
    discovery.zen.ping.unicast.hosts: ["192.168.201.200","192.168.201.101","192.168.201.102","192.168.201.1
    03","192.168.201.144","192.168.201.145","192.168.201.146","192.168.201.147","192.168.201.148" ]
    discovery.zen.minimum_master_nodes: 3

configure of master node:

    cluster.name: es_cluster
    node.name: master_node_200
    node.master: true
    node.data: false
    path.data: /data/es/data
    path.logs: /data/es/logs
    network.host: 0.0.0.0
    network.publish_host: 0.0.0.0
    gateway.recover_after_nodes: 2
    discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping_timeout: 60s
    discovery.zen.ping.unicast.hosts: ["192.168.201.200","192.168.201.101","192.168.201.102","192.168.201.103" ]
    discovery.zen.minimum_master_nodes: 3
    bootstrap.mlockall: true

it's weird that master node can find the data node.
PS. master node : "192.168.201.200","192.168.201.101","192.168.201.102","192.168.201.103",192.168.201.200" and others are data node.ES version:2.3.2.Open JDK version:1.8.0_101.

1 个答案:

答案 0 :(得分:2)

需要在群集中的所有节点上安装许可插件,包括符合主节点的节点。

如果许可证到期,它仍然可以使用,但会有一些限制:

  • 观察者

    • 禁用PUT / GET监视API,DELETE监视API继续工作
    • 手表执行并写入历史记录
    • 手表的动作不执行
  • 屏蔽

    • 群集运行状况,群集统计信息和索引统计信息操作已被阻止
    • 所有数据操作(读取和写入)继续工作

而且,这些列出了here

但是,主要是,ES群集可以正常工作。