# Elastic Search 2.3.5 Cluster setup issues

**URL:** <https://discuss.elastic.co/t/elastic-search-2-3-5-cluster-setup-issues/58471>\
**Category:** Elasticsearch\
**Created:** [August 19, 2016, 2:36pm UTC](https://discuss.elastic.co/t/elastic-search-2-3-5-cluster-setup-issues/58471 "2016-08-19T14:36:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isha](https://avatars.discourse-cdn.com/v4/letter/i/22d042/32.png) [@Isha](https://discuss.elastic.co/u/Isha)\
**Post date:** [August 19, 2016, 2:36pm UTC](https://discuss.elastic.co/t/elastic-search-2-3-5-cluster-setup-issues/58471/1 "2016-08-19T14:36:47Z")

</div>

I am trying to setup a ES 2.3.5 cluster using two nodes. However Node1 and Node2 not joining the cluster , my cluster configuration follows here

Node 1:

[cluster.name](http://cluster.name): mc\_es\_dev  
[node.name](http://node.name): ${HOSTNAME}  
path.data: /opt/es/data  
path.logs: /opt/es/logs  
path.work: /opt/es/work  
bootstrap.mlockall: true  
network.host: "[002.enterprisenet.org](http://002.enterprisenet.org)"  
discovery.zen.ping.unicast.hosts: ["[001.enterprise.org](http://001.enterprise.org)","[002.enterprise.org](http://002.enterprise.org)"]  
http.jsonp.enable: true  
marvel.agent.enabled: false

Node 2:

[cluster.name](http://cluster.name): mc\_es\_dev  
[node.name](http://node.name): ${HOSTNAME}  
path.data: /opt/es/data  
path.logs: /opt/es/logs  
path.work: /opt/es/work  
bootstrap.mlockall: true  
network.host: "[001.enterprisenet.org](http://001.enterprisenet.org)"  
discovery.zen.ping.unicast.hosts: ["[001.enterprise.org](http://001.enterprise.org)","[002.enterprise.org](http://002.enterprise.org)"]  
http.jsonp.enable: true  
marvel.agent.enabled: false

above configuration throws below error while launching ES instance on node1.

Exception in thread "main" BindTransportException[Failed to bind to [9300-9400]]; nested: ChannelException[Failed to bind to: [002.enterprise.org/10.7.xxx.107:9400](http://002.enterprise.org/10.7.xxx.107:9400)]; nested: BindException[Cannot assign requested address];  
Likely root cause: java.net.BindException: Cannot assign requested address  
at sun.nio.ch.Net.bind0(Native Method)  
at sun.nio.ch.Net.bind(Net.java:433)  
at sun.nio.ch.Net.bind(Net.java:425)  
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)  
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)  
at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)  
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)  
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)  
at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)  
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)  
Refer to the log for complete error details.

Before setting "network.host" property on each Node , each node up and running fine independently but not as a cluster.

Not sure what I am missing here ,any help please?

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 20, 2016, 7:24am UTC](https://discuss.elastic.co/t/elastic-search-2-3-5-cluster-setup-issues/58471/2 "2016-08-20T07:24:38Z")

</div>

> [@Isha](#):
>
> network.host: "[002.enterprisenet.org](http://002.enterprisenet.org)"

Does that resolve correctly if you ping it?

---

<div class="post-metadata">

**Author:** ![Isha](https://avatars.discourse-cdn.com/v4/letter/i/22d042/32.png) [@Isha](https://discuss.elastic.co/u/Isha)\
**Post date:** [August 22, 2016, 5:14pm UTC](https://discuss.elastic.co/t/elastic-search-2-3-5-cluster-setup-issues/58471/3 "2016-08-22T17:14:28Z")

</div>

Thanks Warkolm!

I have found issue in linux server setup itself , had wrong IP placed in /etc/hosts file. Now my cluster ist up and running with two nodes.

Thanks,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:26pm UTC](https://discuss.elastic.co/t/elastic-search-2-3-5-cluster-setup-issues/58471/4 "2017-07-05T22:26:07Z")

</div>


