I have spend a few hours trying to set up a 2 nodes cluster on Azure cloud, but it looks like ES on these two VMs cannot find each other.
Below are the thing I have done
Set up a virtual network
Create two vms in this network
Set up ES on both vms
Open ports 9200 and 9300 on Azure platform
Open ports 9200 and 9300 on both Vms
Every time I tried localhost:9200/_cat/nodes, there is always 1 node. And also, publicIP:9200 doesn't work for me either. Can someone help me out? Thanks a lot.
I have setup ES on Azure VMs (IaaS V2 VM) successfully with ES built-in unicast discovery mechanism.
As David mentioned, make sure set network.host if you are using ES 2.x.
As for public IP:9200, you need setup Azure load balancer. in front of VMs.
Thanks. As you mentioned in another thread, I have set it to 0.0.0.0. Is it correct? I guess it means ES is listening to both remote and local request.
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.