Hi,
I configured simple two-node cluster (for test purposes) with one master node. It's Red Hat servers. Unfortunately second node cannot join to the master node. Here is configuration of master node:
cluster.name: elksandpit
node.name: "sandpit1"
node.master: true
node.data: true
path.data: /var/opt/elk_storage/data
path.work: /var/opt/elk_storage/work
path.logs: /var/opt/elk_storage/logs
bootstrap.mlockall: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["127.0.0.1"]
transport.tcp.port: 9300
network.publish_host: aa.bbc.ccc.228 //I am hiding IP in post for privacy
And here is configuration of second node, this node is design only for Kibana:
cluster.name: elksandpit
node.name: "kibana"
node.master: false
node.data: false
bootstrap.mlockall: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["aa.bbb.ccc.228:9300"]
transport.tcp.connect_timeout: 2m
network.publish_host: aa.bbb.ccc.226
When I'm executing this from second node (not master):
curl -XGET localhost:9200/_cat/health
error appears:
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}
MasterNotDiscoveredException[null]
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$5.onTimeout(TransportMasterNodeAction.java:226)
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:236)
at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:804)
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)
If somebody could give any hint. Thanks.