I have installed Elasticsearch 5.51 and Kibana 5.51 and I am now getting an Elasticsearch plugin is red error message
screenshot from 2017-11-29 14-37-18
The Elasticsearch logs mention - not enough master nodes discovered, I have 4 nodes and one master --
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]
[2017-11-29T14:23:41,899][WARN ][o.e.d.z.ZenDiscovery ] [elasticsearch-logging-0] not enough master nodes discovered during pinging (found [[Candidate{node={elasticsearch-logging-0}{2vy6rZTLR7CZIi6wbRZj0Q}{tUNcsm31SVyMKVoZJc7BTA}{100.96.4.6}{100.96.4.6:9300}{ml.enabled=true}, clusterStateVersion=-1}]], but needed [2]), pinging again
[2017-11-29T14:23:43,417][WARN ][r.suppressed ] path: /.reporting-/esqueue/_search, params: {index=.reporting-, type=esqueue, version=true}
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:165) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedRaiseException(ClusterBlocks.java:151) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:255) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:186) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:65) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:170) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:142) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:84) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:72) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:535) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$1(RestSearchAction.java:78) ~[elasticsearch-5.5.1.jar:5.5.1]
Apparently this problem is related with discovered during pinging, that is, node data could not find out node master.
What is the configuration file of the nodes ?
Ping between nodes responds ?
Telnet on port 9300 between nodes responds ?
Thanks for getting back - I am able to log into the master and ping other
pods. I have also checked that I can ping from pods. However I can not
telnet to port 9300 or 9200 between nodes.
I have installed Elasticsearch, Fluentd and Kibana - all the resources
appear to be running. There is a service for Elasticsearch and a
loadbalancer for kibana.
Do you have a standard firewall installed which could be blocking port 9300? I know when I install a fresh node I have to run iptables --flush before it will join the cluster.
Thanks for getting back - I am running kubernetes on AWS so this would be through security groups. I have current set this to permissive so shouldn't be causing a problem.
That looks more like the Kubernetes configuration, rather than the actual configuration for the elasticsearch node running inside it. Elastic search is clearly looking for more than just one master node, although you state you only have one master node built. So you either have to tell elasticsearch to look for just one node (which is defined inside the elasticsearch.yml file), or build a couple more master nodes for this cluster. I'm sorry but I'm not familiar with Kubernetes and how it works, i'm used to just plain old ES running on bare metal servers.
Have a read of this section, it explians how to set the minimum master count. Not sure whether it allows setting to 1 when you have multiple data nodes, but you can try.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.