I m trying to form 2 data, 2 master and 2 ingest node cluster across two different EC2 servers using docker image. I created Data nodes with explicit port mappings 9200 →9200 and 9300 → 9300 and both joined the cluster successfully,. Now I am trying to bring the Master only node with dynamic port mapping 0 → 9300. I went with dynamic port for master to avoid the port conflicts as both master, data and ingest run on same machine. Not sure if that is cause of the issue. If that is issue, How can I run master and data node on same machine? I see the handshake failed in the logs. what could be the cause for that?
I looked across all the forums but couldn't find answer. As this is EC2 specific setup, I m looking for some suggestions. From setup perspective, I installed the discovery-ec2 and repository-s3 plugins and configured appropriate EC2 instance tags that required to find each other node. I installed 3 Elastic Search nodes on 3 EC2 servers and validated all the nodes joined the cluster. The problem started when I tried to run multiple Elastic Search nodes on the same server. I would like to run both data and master node on same server. How can I configure so they can find each other? As EC2 uses different discovery type, I think it has to be configured differently. Please provide me some guidance.
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.