To create cluster i put the local loopback address and the ip that need to be connected by the other nodes in network.host place.
Till now what i have done is in yml file :
network.host: ["127.0.0.1","10.253.130.181"] apart from this
network.publish_host: ["10.253.130.181"]
network.bind_host: ["10.253.130.181","127.0.0.1"] setting also works.
But in this setting elasticsearch binds both the ip address with both the ports 9200 and 9300 and listens to these ports. Now what i want is it should only listens to localhost(127.0.0.1) in 9200 port and binds the other ip with 9300 port and listens to it and publishes it. It shouldn't bind localhost with 9300 port also. I dont see any requirement for that and it shouldn't bind 10.253.130.181 with the 9200 port. It should be up to me how i want which ip to bind with which port. Why by default with both the ports it is binding.
Thank you warkolm. But what my question was that i want only http request to only localhost and the other internal ips i want to use only for transport inside the cluster. So i want to bind localhost in 9200 and in other internal ip elasticsearch should bind in 9300 port only. Can i do that. Right now what is happening that......elasticsearch is binding both the ips with 9200 and 9300 port also.
i am using elasticsearch-2.3.3. In that link whatever written i already did that. in bind host place i gave loopback address and another ip and publish host i gave only that ip address. But it was binding both the addresses with both the port numbers. So i don't know what can be done. If you find anything, please reply me back.
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.