# "MasterNotDiscoveredException" when working with multiple nodes

**URL:** <https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506>\
**Category:** Elasticsearch\
**Created:** [January 19, 2016, 7:18am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506 "2016-01-19T07:18:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [January 19, 2016, 7:18am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/1 "2016-01-19T07:18:40Z")

</div>

Hello Team,

I have installed ES in two machines, and both nodes I setup as master nodes as shown

Machine 1:  
[cluster.name](http://cluster.name): elasticsearch  
[node.name](http://node.name): "Franz Kafka1"  
node.master: true  
node.data: true  
discovery.zen.ping.multicast.enabled: false  
discovery.zen.ping.unicast.hosts: ["192.168.1.65"]

Machine 2:  
[cluster.name](http://cluster.name): elasticsearch  
[node.name](http://node.name): "Franz Kafka2"  
node.master: true  
node.data: true  
discovery.zen.minimum\_master\_nodes: 2  
discovery.zen.ping.multicast.enabled: false  
discovery.zen.ping.unicast.hosts: ["192.168.1.59"]

Firstly I have started 59 machine and then 65 machine both are showing connection exception as:

no known master node, scheduling a retry  
[2016-01-19 12:36:49,520][INFO][discovery.zen] [Franz Kafka2] failed to send join request to master [[Franz Kafka1][PM60pOh9TzmdVP1SbYbSaw][Anusha-PC][inet[/192.168.1.59:9300]]{master=true}], reason [RemoteTransportException[[Franz Kafka1][inet[/192.168.1.59:9300]][internal:discovery/zen/join]]; nested: ConnectTransportException[[Franz Kafka2][inet[/192.168.1.65:9300]] connect\_timeout[30s]]; nested: ConnectException[Connection timed out: no further information: /192.168.1.65:9300]; ]

Can anyone suggest me on how to solve this issue?????

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 19, 2016, 7:41am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/2 "2016-01-19T07:41:34Z")

</div>

If you are on 2.x you should change network.host.

Note that

```
  discovery.zen.ping.multicast.enabled: false

```

Is useless in 2.x.

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [January 19, 2016, 7:42am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/3 "2016-01-19T07:42:58Z")

</div>

Am using 1.5.2

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [January 19, 2016, 7:51am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/4 "2016-01-19T07:51:45Z")

</div>

Hello David,

Do I need to change the port value of one of the nodes???  
Is there any settings that I need to make to work them properly, currently am testing both of them in different OS machines  
59--\> windows machine  
65--\>CentOS

is this a problem????

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [January 19, 2016, 9:43am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/5 "2016-01-19T09:43:31Z")

</div>

Hello,  
Can anyone please look into this, am unable to work with multiple nodes in different machines, can anyone provide me a step by step clear process??????????????

And this is very important task for me to work on, I strucked here...........

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [January 19, 2016, 9:51am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/6 "2016-01-19T09:51:21Z")

</div>

Please be patient when waiting for an answer to your questions. This is a community forum and as such it may take some time before someone replies to your question. Not everyone on the forum is an expert in every area so you may need to wait for someone who knows about the area you are asking about to come online and have the time to look into your problem. Please see [https://www.elastic.co/community/codeofconduct](https://www.elastic.co/community/codeofconduct) for more details on our code of conduct (in particular the "be patient" section).

There are no SLAs on responses to questions posted on this forum, if you require help with an SLA on responses you should look into purchasing a subscription package that includes support with an SLA such as those offered by Elastic: [https://www.elastic.co/subscriptions](https://www.elastic.co/subscriptions)

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [January 19, 2016, 11:04am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/7 "2016-01-19T11:04:37Z")

</div>

Hello Colin,  
Sorry for my impatience, I have seen in all possible for that I posted those many questions..

Working with multiple nodes which are there in single host but unable to connect nodes which are there in separate hosts?????

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 19, 2016, 11:39am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/8 "2016-01-19T11:39:42Z")

</div>

I guess that Machine 1 is `192.168.1.59` and Machine 2 is `192.168.1.65`?

Whatever, I'd set on both machines:

```auto
discovery.zen.ping.unicast.hosts: ["192.168.1.59", "192.168.1.65"]

```

> [@anusha6](#):
>
> 59--\> windows machine65--\>CentOS
> 
> is this a problem????

No as long as you have the same exact JVM version / vendor it should work well.

I'd most likely check the firewall settings especially on windows... Make sure that port `9300` is accessible.

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [January 20, 2016, 7:41am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/9 "2016-01-20T07:41:58Z")

</div>

Hello David,

I tried with windows machine both I set up as master they are able to form cluster,  
but not able to do the same with different OS machines, verified the java versions in both machines(both using jdk 1.7)????

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 20, 2016, 7:55am UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/10 "2016-01-20T07:55:32Z")

</div>

That looks strange indeed.

Can you change the log level for discovery to debug and upload the log file from both machines to [gist.github.com](http://gist.github.com)?

---

<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, 11:23pm UTC](https://discuss.elastic.co/t/masternotdiscoveredexception-when-working-with-multiple-nodes/39506/11 "2017-07-05T23:23:07Z")

</div>


