Node joining docker

I have problem joining a data node to the cluster.
I m using docker in 2 separate machines. Both machines can talk to each other.
My first docker:
-- Master
docker run -d --name elastic
-p 9200:9200 -p 9300:9300
-e ""
-e "node.master=true"
-e ""

My second:
-- Data working
docker run -d --name elastic
-p 9200:9200 -p 9300:9300
-e ""
-e "node.master=false"
-e ""
-e ""
-e ""
-e "network.publish_host="
-e "discovery.seed_hosts="

The log is telling:
"": "my-name-2", "message": "master not discovered yet: have discovered [{my-name-2}{Je7lyXm9QI-139Sq-LrrFA}{CEjg2sdCTMuOzDrQf7bqAQ}{}{}{dilrt}{ml.machine_memory=16617246720, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]; discovery will continue using [] from hosts providers and from last-known cluster state; node term 0, last-accepted version 0 in term 0" }

PS: From the data node (inside the container) I can ping the master .

  1. Please format your code for better readability.
  2. -e"cluster.initial_master_nodes=12.3.202" seems to miss a dot between 1 and 2.
  3. I'm not sure that is the correct for your scenario, see the documentation on cluster.initial_master_nodes.

Ah, sorry about that. The missing dot is just typos.
I also read the documentation (of course).

The problem was a local firewall. By running:

sudo firewall-cmd --zone=public --add-masquerade --permanent sudo firewall-cmd --reload
$ sudo systemctl restart docker

Then problem is gone

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.