Elasticsearch 503错误MasterNotDiscoveredException

时间:2015-05-05 12:02:54

标签: elasticsearch

我是ES的新手。我想在elasticsearch.yml文件中为同一个集群添加一些新节点,但是当我尝试检查集群运行状况时出现此错误

(GET _cluster/health):
   "error": "MasterNotDiscoveredException[waited for [30s]]",
   "status": 503

这是我的配置文件:

cluster.name: mycluster6
node.name: "nodeA"
node.master: true
node.data: true
discovery.zen.ping.multicast.enabled: false

cluster.name: mycluster6
node.name: "nodeB"
node.master: false
node.data: true
discovery.zen.ping.multicast.enabled: false

cluster.name: mycluster6
node.name: "nodeC"
node.master: false
node.data: true
discovery.zen.ping.multicast.enabled: false

cluster.name: mycluster6
node.name: "nodeD"
node.master: false
node.data: true
discovery.zen.ping.multicast.enabled: false

discovery.zen.minimum_master_nodes: 3

在控制台中:

java.lang.NullPointerException
    at org.elasticsearch.marvel.agent.Utils.extractHostsFromHttpServer(Utils.java:90)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.openAndValidateConnection(ESExporter.java:344)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.openExportingConnection(ESExporter.java:212)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.exportXContent(ESExporter.java:275)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.exportNodeStats(ESExporter.java:173)
    at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.exportNodeStats(AgentService.java:305)
    at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:225)
    at java.lang.Thread.run(Thread.java:745)
[2015-05-05 14:00:58,053][TRACE][discovery.zen            ] [nodeD] full ping responses: {none}
[2015-05-05 14:00:58,053][DEBUG][discovery.zen            ] [nodeD] filtered ping responses: (filter_client[true], filter_data[false]) {none}
[2015-05-05 14:00:58,053][TRACE][discovery.zen            ] [nodeD] not enough master nodes [[]]
[2015-05-05 14:00:58,053][TRACE][discovery.zen            ] [nodeD] starting to ping
[2015-05-05 14:01:01,065][TRACE][discovery.zen            ] [nodeD] full ping responses: {none}
[2015-05-05 14:01:01,065][DEBUG][discovery.zen            ] [nodeD] filtered ping responses: (filter_client[true], filter_data[false]) {none}
[2015-05-05 14:01:01,065][TRACE][discovery.zen            ] [nodeD] not enough master nodes [[]]
[2015-05-05 14:01:01,065][TRACE][discovery.zen            ] [nodeD] starting to ping
[2015-05-05 14:01:04,079][TRACE][discovery.zen            ] [nodeD] full ping responses: {none}
[2015-05-05 14:01:04,079][DEBUG][discovery.zen            ] [nodeD] filtered ping responses: (filter_client[true], filter_data[false]) {none}
[2015-05-05 14:01:04,079][TRACE][discovery.zen            ] [nodeD] not enough master nodes [[]]
[2015-05-05 14:01:04,079][TRACE][discovery.zen            ] [nodeD] starting to ping
[2015-05-05 14:01:05,795][ERROR][marvel.agent             ] [nodeD] exporter [es_exporter] has thrown an exception:

0 个答案:

没有答案