Elasticsearch 3 nodes cluster not joining with each other

I performed following steps

  1. Update first node elasticsearch yml as above(Node 1 )
  2. Restarted first node
  3. I installed second node elasticsearch which will have default config. Then I updated node 2 elasticsearch yml, deleted data dir and restarted elasticsearch
  4. I installed third node elasticsearch which will have default config. Then I updated node 3 elasticsearch yml, deleted data dir and restarted elasticsearch

Expected result is all should join single cluster. But sometimes one of the nodes not joining of the cluster

As per above doc, I have * discovery.seed_hosts and * cluster.initial_master_nodes. But I dont have * discovery.seed_providers alone. It shouldnt be a cause as I have other two

I dont get anything useful in logs too related to cluster formation