# Cluster\_name\[elasticsearch\]} with no matching id

**URL:** <https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607>\
**Category:** Elasticsearch\
**Created:** [July 1, 2013, 5:58pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607 "2013-07-01T17:58:10Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henri\_van\_den\_Bulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henri_van_den_bulk/32/1671_2.png) [@Henri\_van\_den\_Bulk](https://discuss.elastic.co/u/Henri_van_den_Bulk)\
**Post date:** [July 1, 2013, 5:58pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/1 "2013-07-01T17:58:10Z")

</div>

I'm building a simple Java Client same as mentioned posted under Java  
client can't start a node.[https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster\_name[elasticsearch]}$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ](https://groups.google.com/forum/#!searchin/elasticsearch/%2420cluster_name%5Belasticsearch%5D%7D%2420with%2420no%2420matching%2420id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ) But  
I did not see a resolution there.

Both the elastic search node instance and the client are running on my  
local machine. Firewall is not blocking connections as all firewalls are  
shutdown and I have tested the ports.

NodeBuilder builder = nodeBuilder();  
builder.client(true);  
// Build and start the node.  
node = builder.node();  
client = node.client();

On the node I keep getting the following logs:

master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]],  
cluster\_name[elasticsearch]} with no matching id [21]

The client gets:

Exception in thread "main"  
org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
at  
org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
at  
org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Henri\_van\_den\_Bulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henri_van_den_bulk/32/1671_2.png) [@Henri\_van\_den\_Bulk](https://discuss.elastic.co/u/Henri_van_den_Bulk)\
**Post date:** [July 1, 2013, 6:03pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/2 "2013-07-01T18:03:08Z")

</div>

What's strange is that if I remove the builder.client(true); I see two of  
these error on the node, but it connects without timeout. What's  
different/missing?

On Monday, July 1, 2013 11:58:10 AM UTC-6, Henri van den Bulk wrote:

> I'm building a simple Java Client same as mentioned posted under Java  
> client can't start a node.[https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster\_name[elasticsearch]}$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ](https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster_name%5Belasticsearch%5D%7D$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ) But  
> I did not see a resolution there.
> 
> Both the Elasticsearch node instance and the client are running on my  
> local machine. Firewall is not blocking connections as all firewalls are  
> shutdown and I have tested the ports.
> 
> NodeBuilder builder = nodeBuilder();  
> builder.client(true);  
> // Build and start the node.  
> node = builder.node();  
> client = node.client();
> 
> On the node I keep getting the following logs:
> 
> master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [21]
> 
> The client gets:
> 
> Exception in thread "main"  
> org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> at  
> org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [July 2, 2013, 8:36am UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/3 "2013-07-02T08:36:37Z")

</div>

Hi Henri,  
I don't think it connects when you remove the client(true) statement.

If you don't set client(true) while creating the node, your client node  
will be master eligible and will hold data, like any other elasticsearch  
node, which is usually not what you want for a client node. Also, if there  
are network problems, your client node might create its own separate  
cluster. This is what's happening in your case when you remove the  
client(true) statement: the two nodes don't join the same cluster and the  
node created from your java code becomes the master of its own separate  
cluster.

When you set client(true) you create your client node with the options  
master:false and data:false. That means the client will try to join an  
existing cluster with same name. But if there are network problems or  
cluster name mismatch, the node won't be able to create its own separate  
cluster because it cannot be a master and a cluster must have a master  
node. Thus you get the MasterNotDiscoveredException because there's no  
master in this separate cluster.

I guess you want to stick to the client(true) and would like your client  
node to join your existing cluster.

Hope this helps  
Luca

On Monday, July 1, 2013 8:03:08 PM UTC+2, Henri van den Bulk wrote:

> What's strange is that if I remove the builder.client(true); I see two of  
> these error on the node, but it connects without timeout. What's  
> different/missing?
> 
> On Monday, July 1, 2013 11:58:10 AM UTC-6, Henri van den Bulk wrote:
> 
> > I'm building a simple Java Client same as mentioned posted under Java  
> > client can't start a node.[https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster\_name[elasticsearch]}$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ](https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster_name%5Belasticsearch%5D%7D$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ) But  
> > I did not see a resolution there.
> > 
> > Both the Elasticsearch node instance and the client are running on my  
> > local machine. Firewall is not blocking connections as all firewalls are  
> > shutdown and I have tested the ports.
> > 
> > NodeBuilder builder = nodeBuilder();  
> > builder.client(true);  
> > // Build and start the node.  
> > node = builder.node();  
> > client = node.client();
> > 
> > On the node I keep getting the following logs:
> > 
> > master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]],  
> > cluster\_name[elasticsearch]} with no matching id [21]
> > 
> > The client gets:
> > 
> > Exception in thread "main"  
> > org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> > at  
> > org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> > at  
> > org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> > at java.lang.Thread.run(Unknown Source)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Henri\_van\_den\_Bulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henri_van_den_bulk/32/1671_2.png) [@Henri\_van\_den\_Bulk](https://discuss.elastic.co/u/Henri_van_den_Bulk)\
**Post date:** [July 2, 2013, 3:58pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/4 "2013-07-02T15:58:35Z")

</div>

Hi Luca -

Thanks for the reply. For sure I want to have the client not be a node as  
I'm developing a client. However, I continue to see these connection issues  
and so my question is why is it not able to connect? I see the following  
entries in the Windows Resource Monitor that show that the search node is  
up and running. Also, I used telnet connect from a different machine to the  
search node on port 9200 and 9300 and both respond.

Image PID Address Port Protocol Firewall Status  
java.exe 2812 IPv4 unspecified 9200 TCP Allowed, restricted  
java.exe 2812 IPv4 unspecified 9300 TCP Allowed, restricted

I now tried to switch the code to use TransportClient, but that does not  
work either:

this.client = new TransportClient()  
.addTransportAddress(new InetSocketTransportAddress("localhost",  
9200))  
.addTransportAddress(new InetSocketTransportAddress("localhost",  
9300));

Result:

Jul 02, 2013 9:57:21 AM org.elasticsearch.plugins  
INFO: [Aardwolf] loaded , sites   
Jul 02, 2013 9:57:27 AM org.elasticsearch.client.transport  
INFO: [Aardwolf] failed to get node info for  
[#transport#-1][inet[localhost/127.0.0.1:9200]], disconnecting...  
org.elasticsearch.transport.ReceiveTimeoutTransportException:  
[inet[localhost/127.0.0.1:9200]][cluster/nodes/info] request\_id [0] timed  
out after [4991ms]  
at  
org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)

Jul 02, 2013 9:57:32 AM org.elasticsearch.client.transport  
INFO: [Aardwolf] failed to get node info for  
[#transport#-1][inet[localhost/127.0.0.1:9200]], disconnecting...  
org.elasticsearch.transport.ReceiveTimeoutTransportException:  
[inet[localhost/127.0.0.1:9200]][cluster/nodes/info] request\_id [1] timed  
out after [4989ms]  
at  
org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)

How can I diagnose this issue more?

On Tuesday, July 2, 2013 2:36:37 AM UTC-6, Luca Cavanna wrote:

> Hi Henri,  
> I don't think it connects when you remove the client(true) statement.
> 
> If you don't set client(true) while creating the node, your client node  
> will be master eligible and will hold data, like any other elasticsearch  
> node, which is usually not what you want for a client node. Also, if there  
> are network problems, your client node might create its own separate  
> cluster. This is what's happening in your case when you remove the  
> client(true) statement: the two nodes don't join the same cluster and the  
> node created from your java code becomes the master of its own separate  
> cluster.
> 
> When you set client(true) you create your client node with the options  
> master:false and data:false. That means the client will try to join an  
> existing cluster with same name. But if there are network problems or  
> cluster name mismatch, the node won't be able to create its own separate  
> cluster because it cannot be a master and a cluster must have a master  
> node. Thus you get the MasterNotDiscoveredException because there's no  
> master in this separate cluster.
> 
> I guess you want to stick to the client(true) and would like your client  
> node to join your existing cluster.
> 
> Hope this helps  
> Luca
> 
> On Monday, July 1, 2013 8:03:08 PM UTC+2, Henri van den Bulk wrote:
> 
> > What's strange is that if I remove the builder.client(true); I see two of  
> > these error on the node, but it connects without timeout. What's  
> > different/missing?
> > 
> > On Monday, July 1, 2013 11:58:10 AM UTC-6, Henri van den Bulk wrote:
> > 
> > > I'm building a simple Java Client same as mentioned posted under Java  
> > > client can't start a node.[https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster\_name[elasticsearch]}$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ](https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster_name%5Belasticsearch%5D%7D$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ) But  
> > > I did not see a resolution there.
> > > 
> > > Both the Elasticsearch node instance and the client are running on my  
> > > local machine. Firewall is not blocking connections as all firewalls are  
> > > shutdown and I have tested the ports.
> > > 
> > > NodeBuilder builder = nodeBuilder();  
> > > builder.client(true);  
> > > // Build and start the node.  
> > > node = builder.node();  
> > > client = node.client();
> > > 
> > > On the node I keep getting the following logs:
> > > 
> > > master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]],  
> > > cluster\_name[elasticsearch]} with no matching id [21]
> > > 
> > > The client gets:
> > > 
> > > Exception in thread "main"  
> > > org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> > > at  
> > > org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> > > at  
> > > org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> > > at java.lang.Thread.run(Unknown Source)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 2, 2013, 4:31pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/5 "2013-07-02T16:31:50Z")

</div>

If you set a different cluster name, don't forget to set it here as well.

See [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client/)

HTH

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 2 juil. 2013 à 17:58, Henri van den Bulk [hvandenbulk@gmail.com](mailto:hvandenbulk@gmail.com) a écrit :

> Hi Luca -
> 
> Thanks for the reply. For sure I want to have the client not be a node as I'm developing a client. However, I continue to see these connection issues and so my question is why is it not able to connect? I see the following entries in the Windows Resource Monitor that show that the search node is up and running. Also, I used telnet connect from a different machine to the search node on port 9200 and 9300 and both respond.
> 
> Image PID Address Port Protocol Firewall Status  
> java.exe 2812 IPv4 unspecified 9200 TCP Allowed, restricted  
> java.exe 2812 IPv4 unspecified 9300 TCP Allowed, restricted
> 
> I now tried to switch the code to use TransportClient, but that does not work either:
> 
> ```
> this.client = new TransportClient()
> .addTransportAddress(new InetSocketTransportAddress("localhost", 9200))
> .addTransportAddress(new InetSocketTransportAddress("localhost", 9300));
> 
> ```
> 
> Result:
> 
> Jul 02, 2013 9:57:21 AM org.elasticsearch.plugins  
> INFO: [Aardwolf] loaded , sites   
> Jul 02, 2013 9:57:27 AM org.elasticsearch.client.transport  
> INFO: [Aardwolf] failed to get node info for [#transport#-1][inet[localhost/127.0.0.1:9200]], disconnecting...  
> org.elasticsearch.transport.ReceiveTimeoutTransportException: [inet[localhost/127.0.0.1:9200]][cluster/nodes/info] request\_id [0] timed out after [4991ms]  
> at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)
> 
> Jul 02, 2013 9:57:32 AM org.elasticsearch.client.transport  
> INFO: [Aardwolf] failed to get node info for [#transport#-1][inet[localhost/127.0.0.1:9200]], disconnecting...  
> org.elasticsearch.transport.ReceiveTimeoutTransportException: [inet[localhost/127.0.0.1:9200]][cluster/nodes/info] request\_id [1] timed out after [4989ms]  
> at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)
> 
> How can I diagnose this issue more?
> 
> On Tuesday, July 2, 2013 2:36:37 AM UTC-6, Luca Cavanna wrote:  
> Hi Henri,  
> I don't think it connects when you remove the client(true) statement.
> 
> If you don't set client(true) while creating the node, your client node will be master eligible and will hold data, like any other elasticsearch node, which is usually not what you want for a client node. Also, if there are network problems, your client node might create its own separate cluster. This is what's happening in your case when you remove the client(true) statement: the two nodes don't join the same cluster and the node created from your java code becomes the master of its own separate cluster.
> 
> When you set client(true) you create your client node with the options master:false and data:false. That means the client will try to join an existing cluster with same name. But if there are network problems or cluster name mismatch, the node won't be able to create its own separate cluster because it cannot be a master and a cluster must have a master node. Thus you get the MasterNotDiscoveredException because there's no master in this separate cluster.
> 
> I guess you want to stick to the client(true) and would like your client node to join your existing cluster.
> 
> Hope this helps  
> Luca
> 
> On Monday, July 1, 2013 8:03:08 PM UTC+2, Henri van den Bulk wrote:  
> What's strange is that if I remove the builder.client(true); I see two of these error on the node, but it connects without timeout. What's different/missing?
> 
> On Monday, July 1, 2013 11:58:10 AM UTC-6, Henri van den Bulk wrote:  
> I'm building a simple Java Client same as mentioned posted under Java client can't start a node. But I did not see a resolution there.
> 
> Both the Elasticsearch node instance and the client are running on my local machine. Firewall is not blocking connections as all firewalls are shutdown and I have tested the ports.
> 
> ```
> NodeBuilder builder = nodeBuilder();	
> builder.client(true);
> // Build and start the node.
> node = builder.node();
> 
> client = node.client();	
> 
> ```
> 
> On the node I keep getting the following logs:
> 
> master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]], cluster\_name[elasticsearch]} with no matching id [21]
> 
> The client gets:
> 
> Exception in thread "main" org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> at org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Henri\_van\_den\_Bulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henri_van_den_bulk/32/1671_2.png) [@Henri\_van\_den\_Bulk](https://discuss.elastic.co/u/Henri_van_den_Bulk)\
**Post date:** [July 2, 2013, 4:39pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/6 "2013-07-02T16:39:40Z")

</div>

I have everything set to the defaults. I tried your suggesting as well to  
explicitly set the clustername, but no luck. On the search node you can see  
that it's using the defaults:

C:\tools\elasticsearch-0.90.1\>bin\elasticsearch  
[2013-07-02 09:45:41,667][INFO][node] [Baron Zemo]  
{0.90.1}[2812]: initializing ...  
[2013-07-02 09:45:42,278][INFO][plugins] [Baron Zemo]  
loaded , sites [bigdesk, inquisitor, HQ, head]  
[2013-07-02 09:45:46,484][INFO][node] [Baron Zemo]  
{0.90.1}[2812]: initialized  
[2013-07-02 09:45:46,485][INFO][node] [Baron Zemo]  
{0.90.1}[2812]: starting ...  
[2013-07-02 09:45:46,595][INFO][transport] [Baron Zemo]  
bound\_address {inet[/0.0.0.0:9300]}, publish\_address {inet[/x.x.x.x:9300]}  
[2013-07-02 09:45:50,177][INFO][cluster.service] [Baron Zemo]  
new\_master [Baron Zemo][zY-fOHRhSCeVk4pEjGdJWw][inet[/x.x.x.x:9300]],  
reason: zen-  
disco-join (elected\_as\_master)  
[2013-07-02 09:45:50,205][INFO][discovery] [Baron Zemo] \*  
elasticsearch\*/zY-fOHRhSCeVk4pEjGdJWw  
[2013-07-02 09:45:50,620][INFO][http] [Baron Zemo]  
bound\_address {inet[/0.0.0.0:9200]}, publish\_address {inet[/x.x.x.x:9200]}  
[2013-07-02 09:45:50,620][INFO][node] [Baron Zemo]  
{0.90.1}[2812]: started  
[2013-07-02 09:46:05,981][INFO][gateway] [Baron Zemo]  
recovered [3] indices into cluster\_state  
[2013-07-02 09:48:14,149][WARN][discovery.zen.ping.multicast] [Baron Zemo]  
received ping response ping\_response{target [[Baron  
Zemo][zY-fOHRhSCeVk4pEjGdJWw][in  
et[/10.143.13.57:9300]]], master [[Baron  
Zemo][zY-fOHRhSCeVk4pEjGdJWw][inet[/x.x.x.x:9300]]],  
cluster\_name[elasticsearch]} with no matching id [1]

On Tuesday, July 2, 2013 10:31:50 AM UTC-6, David Pilato wrote:

> If you set a different cluster name, don't forget to set it here as well.
> 
> See [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client/)
> 
> HTH
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 2 juil. 2013 à 17:58, Henri van den Bulk \<[hvand...@gmail.com](mailto:hvand...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> Hi Luca -
> 
> Thanks for the reply. For sure I want to have the client not be a node as  
> I'm developing a client. However, I continue to see these connection issues  
> and so my question is why is it not able to connect? I see the following  
> entries in the Windows Resource Monitor that show that the search node is  
> up and running. Also, I used telnet connect from a different machine to the  
> search node on port 9200 and 9300 and both respond.
> 
> Image PID Address Port Protocol Firewall Status  
> java.exe 2812 IPv4 unspecified 9200 TCP Allowed, restricted  
> java.exe 2812 IPv4 unspecified 9300 TCP Allowed, restricted
> 
> I now tried to switch the code to use TransportClient, but that does not  
> work either:
> 
> this.client = new TransportClient()  
> .addTransportAddress(new InetSocketTransportAddress("localhost",  
> 9200))  
> .addTransportAddress(new InetSocketTransportAddress("localhost",  
> 9300));
> 
> Result:
> 
> Jul 02, 2013 9:57:21 AM org.elasticsearch.plugins  
> INFO: [Aardwolf] loaded , sites   
> Jul 02, 2013 9:57:27 AM org.elasticsearch.client.transport  
> INFO: [Aardwolf] failed to get node info for  
> [#transport#-1][inet[localhost/127.0.0.1:9200]], disconnecting...  
> org.elasticsearch.transport.ReceiveTimeoutTransportException:  
> [inet[localhost/127.0.0.1:9200]][cluster/nodes/info] request\_id [0] timed  
> out after [4991ms]  
> at  
> org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)
> 
> Jul 02, 2013 9:57:32 AM org.elasticsearch.client.transport  
> INFO: [Aardwolf] failed to get node info for  
> [#transport#-1][inet[localhost/127.0.0.1:9200]], disconnecting...  
> org.elasticsearch.transport.ReceiveTimeoutTransportException:  
> [inet[localhost/127.0.0.1:9200]][cluster/nodes/info] request\_id [1] timed  
> out after [4989ms]  
> at  
> org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)
> 
> How can I diagnose this issue more?
> 
> On Tuesday, July 2, 2013 2:36:37 AM UTC-6, Luca Cavanna wrote:
> 
> > Hi Henri,  
> > I don't think it connects when you remove the client(true) statement.
> > 
> > If you don't set client(true) while creating the node, your client node  
> > will be master eligible and will hold data, like any other elasticsearch  
> > node, which is usually not what you want for a client node. Also, if there  
> > are network problems, your client node might create its own separate  
> > cluster. This is what's happening in your case when you remove the  
> > client(true) statement: the two nodes don't join the same cluster and the  
> > node created from your java code becomes the master of its own separate  
> > cluster.
> > 
> > When you set client(true) you create your client node with the options  
> > master:false and data:false. That means the client will try to join an  
> > existing cluster with same name. But if there are network problems or  
> > cluster name mismatch, the node won't be able to create its own separate  
> > cluster because it cannot be a master and a cluster must have a master  
> > node. Thus you get the MasterNotDiscoveredException because there's no  
> > master in this separate cluster.
> > 
> > I guess you want to stick to the client(true) and would like your client  
> > node to join your existing cluster.
> > 
> > Hope this helps  
> > Luca
> > 
> > On Monday, July 1, 2013 8:03:08 PM UTC+2, Henri van den Bulk wrote:
> > 
> > > What's strange is that if I remove the builder.client(true); I see two  
> > > of these error on the node, but it connects without timeout. What's  
> > > different/missing?
> > > 
> > > On Monday, July 1, 2013 11:58:10 AM UTC-6, Henri van den Bulk wrote:
> > > 
> > > > I'm building a simple Java Client same as mentioned posted under Java  
> > > > client can't start a node.[https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster\_name[elasticsearch]}$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ](https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster_name%5Belasticsearch%5D%7D$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ) But  
> > > > I did not see a resolution there.
> > > > 
> > > > Both the Elasticsearch node instance and the client are running on my  
> > > > local machine. Firewall is not blocking connections as all firewalls are  
> > > > shutdown and I have tested the ports.
> > > > 
> > > > NodeBuilder builder = nodeBuilder();  
> > > > builder.client(true);  
> > > > // Build and start the node.  
> > > > node = builder.node();  
> > > > client = node.client();
> > > > 
> > > > On the node I keep getting the following logs:
> > > > 
> > > > master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]],  
> > > > cluster\_name[elasticsearch]} with no matching id [21]
> > > > 
> > > > The client gets:
> > > > 
> > > > Exception in thread "main"  
> > > > org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> > > > at  
> > > > org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> > > > at  
> > > > org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> > > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> > > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> > > > at java.lang.Thread.run(Unknown Source)
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [July 2, 2013, 4:49pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/7 "2013-07-02T16:49:36Z")

</div>

Do not use port 9200 for Java TransportClient

Jörg

Am 02.07.13 17:58, schrieb Henri van den Bulk:

> How can I diagnose this issue more?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Henri\_van\_den\_Bulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henri_van_den_bulk/32/1671_2.png) [@Henri\_van\_den\_Bulk](https://discuss.elastic.co/u/Henri_van_den_Bulk)\
**Post date:** [July 2, 2013, 4:52pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/8 "2013-07-02T16:52:49Z")

</div>

I turned on the debugging and I'm seeing this on the search node. It looks  
like the client makes a connection, but then disconnects.

This is the search node log when using TransportClient.

[2013-07-02 10:42:58,844][DEBUG][http.netty] [Caiera] Caught  
exception while handling client http traffic, closing connection [id:  
0x286957a3, /1  
27.0.0.1:2609 =\> /127.0.0.1:9200]  
java.io.IOException: An existing connection was forcibly closed by the  
remote host  
at sun.nio.ch.SocketDispatcher.read0(Native Method)  
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)  
at sun.nio.ch.IOUtil.read(IOUtil.java:166)  
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
at  
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
at  
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:662)  
[2013-07-02 10:42:58,844][DEBUG][http.netty] [Caiera] Caught  
exception while handling client http traffic, closing connection [id:  
0xe3612f1f, /1  
27.0.0.1:2608 =\> /127.0.0.1:9200]  
java.io.IOException: An existing connection was forcibly closed by the  
remote host  
at sun.nio.ch.SocketDispatcher.read0(Native Method)  
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)  
at sun.nio.ch.IOUtil.read(IOUtil.java:166)  
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
at  
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
at  
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:662)

When I now change the client code to use nodeBuilder I see the following on  
the search node:

[2013-07-02 10:46:26,148][DEBUG][transport.netty] [Caiera]  
connected to node  
[[Aardwolf][GDm3DJCFSbiaohcW0G1vKA][inet[/x.x.x.x:9300]]{client=tru  
, data=false}]  
[2013-07-02 10:46:26,151][WARN][discovery.zen.ping.multicast] [Caiera]  
received ping response ping\_response{target  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
43.13.57:9300]]], master  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
cluster\_name[elasticsearch]} with no matching id [1]  
[2013-07-02 10:46:27,670][WARN][discovery.zen.ping.multicast] [Caiera]  
received ping response ping\_response{target  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
43.13.57:9300]]], master  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
cluster\_name[elasticsearch]} with no matching id [1]  
[2013-07-02 10:46:29,177][WARN][discovery.zen.ping.multicast] [Caiera]  
received ping response ping\_response{target  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
43.13.57:9300]]], master  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
cluster\_name[elasticsearch]} with no matching id [2]  
[2013-07-02 10:46:30,683][WARN][discovery.zen.ping.multicast] [Caiera]  
received ping response ping\_response{target  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
43.13.57:9300]]], master  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
cluster\_name[elasticsearch]} with no matching id [2]  
[2013-07-02 10:46:32,180][WARN][discovery.zen.ping.multicast] [Caiera]  
received ping response ping\_response{target  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
43.13.57:9300]]], master  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
cluster\_name[elasticsearch]} with no matching id [3]  
[2013-07-02 10:46:33,679][WARN][discovery.zen.ping.multicast] [Caiera]  
received ping response ping\_response{target  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
43.13.57:9300]]], master  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
cluster\_name[elasticsearch]} with no matching id [3]  
[2013-07-02 10:46:35,181][WARN][discovery.zen.ping.multicast] [Caiera]  
received ping response ping\_response{target  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
43.13.57:9300]]], master  
[[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
cluster\_name[elasticsearch]} with no matching id [4]

On the client I see the following - which seems to indicate that it can't  
find the master.

Jul 02, 2013 10:46:56 AM org.elasticsearch.discovery  
WARNING: [Aardwolf] waited for 30s and no initial state was set by the  
discovery  
Jul 02, 2013 10:46:56 AM org.elasticsearch.discovery  
INFO: [Aardwolf] elasticsearch/GDm3DJCFSbiaohcW0G1vKA  
Jul 02, 2013 10:46:56 AM org.elasticsearch.http  
INFO: [Aardwolf] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]},  
publish\_address {inet[/x.x.x.x:9200]}  
Jul 02, 2013 10:46:56 AM org.elasticsearch.node  
INFO: [Aardwolf] {0.90.1}[9556]: started  
Loading....  
Exception in thread "main"  
org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
at  
org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
at  
org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)

On Monday, July 1, 2013 11:58:10 AM UTC-6, Henri van den Bulk wrote:

> I'm building a simple Java Client same as mentioned posted under Java  
> client can't start a node.[https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster\_name[elasticsearch]}$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ](https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster_name%5Belasticsearch%5D%7D$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ) But  
> I did not see a resolution there.
> 
> Both the Elasticsearch node instance and the client are running on my  
> local machine. Firewall is not blocking connections as all firewalls are  
> shutdown and I have tested the ports.
> 
> NodeBuilder builder = nodeBuilder();  
> builder.client(true);  
> // Build and start the node.  
> node = builder.node();  
> client = node.client();
> 
> On the node I keep getting the following logs:
> 
> master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [21]
> 
> The client gets:
> 
> Exception in thread "main"  
> org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> at  
> org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 2, 2013, 5:44pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/9 "2013-07-02T17:44:22Z")

</div>

## Don't use .addTransportAddress(new InetSocketTransportAddress("localhost", 9200)) Only 9300 port!

David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 2 juil. 2013 à 18:52, Henri van den Bulk [hvandenbulk@gmail.com](mailto:hvandenbulk@gmail.com) a écrit :

> I turned on the debugging and I'm seeing this on the search node. It looks like the client makes a connection, but then disconnects.
> 
> This is the search node log when using TransportClient.
> 
> [2013-07-02 10:42:58,844][DEBUG][http.netty] [Caiera] Caught exception while handling client http traffic, closing connection [id: 0x286957a3, /1  
> 27.0.0.1:2609 =\> /127.0.0.1:9200]  
> java.io.IOException: An existing connection was forcibly closed by the remote host  
> at sun.nio.ch.SocketDispatcher.read0(Native Method)  
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)  
> at sun.nio.ch.IOUtil.read(IOUtil.java:166)  
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
> at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
> at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:662)  
> [2013-07-02 10:42:58,844][DEBUG][http.netty] [Caiera] Caught exception while handling client http traffic, closing connection [id: 0xe3612f1f, /1  
> 27.0.0.1:2608 =\> /127.0.0.1:9200]  
> java.io.IOException: An existing connection was forcibly closed by the remote host  
> at sun.nio.ch.SocketDispatcher.read0(Native Method)  
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)  
> at sun.nio.ch.IOUtil.read(IOUtil.java:166)  
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
> at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
> at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:662)
> 
> When I now change the client code to use nodeBuilder I see the following on the search node:
> 
> [2013-07-02 10:46:26,148][DEBUG][transport.netty] [Caiera] connected to node [[Aardwolf][GDm3DJCFSbiaohcW0G1vKA][inet[/x.x.x.x:9300]]{client=tru  
> , data=false}]  
> [2013-07-02 10:46:26,151][WARN][discovery.zen.ping.multicast] [Caiera] received ping response ping\_response{target [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]], cluster\_name[elasticsearch]} with no matching id [1]  
> [2013-07-02 10:46:27,670][WARN][discovery.zen.ping.multicast] [Caiera] received ping response ping\_response{target [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]], cluster\_name[elasticsearch]} with no matching id [1]  
> [2013-07-02 10:46:29,177][WARN][discovery.zen.ping.multicast] [Caiera] received ping response ping\_response{target [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]], cluster\_name[elasticsearch]} with no matching id [2]  
> [2013-07-02 10:46:30,683][WARN][discovery.zen.ping.multicast] [Caiera] received ping response ping\_response{target [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]], cluster\_name[elasticsearch]} with no matching id [2]  
> [2013-07-02 10:46:32,180][WARN][discovery.zen.ping.multicast] [Caiera] received ping response ping\_response{target [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]], cluster\_name[elasticsearch]} with no matching id [3]  
> [2013-07-02 10:46:33,679][WARN][discovery.zen.ping.multicast] [Caiera] received ping response ping\_response{target [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]], cluster\_name[elasticsearch]} with no matching id [3]  
> [2013-07-02 10:46:35,181][WARN][discovery.zen.ping.multicast] [Caiera] received ping response ping\_response{target [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]], cluster\_name[elasticsearch]} with no matching id [4]
> 
> On the client I see the following - which seems to indicate that it can't find the master.
> 
> Jul 02, 2013 10:46:56 AM org.elasticsearch.discovery  
> WARNING: [Aardwolf] waited for 30s and no initial state was set by the discovery  
> Jul 02, 2013 10:46:56 AM org.elasticsearch.discovery  
> INFO: [Aardwolf] elasticsearch/GDm3DJCFSbiaohcW0G1vKA  
> Jul 02, 2013 10:46:56 AM org.elasticsearch.http  
> INFO: [Aardwolf] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/x.x.x.x:9200]}  
> Jul 02, 2013 10:46:56 AM org.elasticsearch.node  
> INFO: [Aardwolf] {0.90.1}[9556]: started  
> Loading....  
> Exception in thread "main" org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> at org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)
> 
> On Monday, July 1, 2013 11:58:10 AM UTC-6, Henri van den Bulk wrote:  
> I'm building a simple Java Client same as mentioned posted under Java client can't start a node. But I did not see a resolution there.
> 
> Both the Elasticsearch node instance and the client are running on my local machine. Firewall is not blocking connections as all firewalls are shutdown and I have tested the ports.
> 
> ```
> NodeBuilder builder = nodeBuilder();	
> builder.client(true);
> // Build and start the node.
> node = builder.node();
> 
> client = node.client();	
> 
> ```
> 
> On the node I keep getting the following logs:
> 
> master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]], cluster\_name[elasticsearch]} with no matching id [21]
> 
> The client gets:
> 
> Exception in thread "main" org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> at org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Henri\_van\_den\_Bulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henri_van_den_bulk/32/1671_2.png) [@Henri\_van\_den\_Bulk](https://discuss.elastic.co/u/Henri_van_den_Bulk)\
**Post date:** [July 2, 2013, 6:15pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/10 "2013-07-02T18:15:34Z")

</div>

That seems to work. Thanks for the help. Why would the node client  
connection not work though?

On Tuesday, July 2, 2013 11:44:22 AM UTC-6, David Pilato wrote:

> ## Don't use .addTransportAddress(new InetSocketTransportAddress("localhost", 9200)) Only 9300 port!
> 
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 2 juil. 2013 à 18:52, Henri van den Bulk \<[hvand...@gmail.com](mailto:hvand...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> I turned on the debugging and I'm seeing this on the search node. It looks  
> like the client makes a connection, but then disconnects.
> 
> This is the search node log when using TransportClient.
> 
> [2013-07-02 10:42:58,844][DEBUG][http.netty] [Caiera]  
> Caught exception while handling client http traffic, closing connection  
> [id: 0x286957a3, /1  
> 27.0.0.1:2609 =\> /127.0.0.1:9200]  
> java.io.IOException: An existing connection was forcibly closed by the  
> remote host  
> at sun.nio.ch.SocketDispatcher.read0(Native Method)  
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)  
> at sun.nio.ch.IOUtil.read(IOUtil.java:166)  
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
> at  
> org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
> at  
> org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:662)  
> [2013-07-02 10:42:58,844][DEBUG][http.netty] [Caiera]  
> Caught exception while handling client http traffic, closing connection  
> [id: 0xe3612f1f, /1  
> 27.0.0.1:2608 =\> /127.0.0.1:9200]  
> java.io.IOException: An existing connection was forcibly closed by the  
> remote host  
> at sun.nio.ch.SocketDispatcher.read0(Native Method)  
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)  
> at sun.nio.ch.IOUtil.read(IOUtil.java:166)  
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
> at  
> org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
> at  
> org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:662)
> 
> When I now change the client code to use nodeBuilder I see the following  
> on the search node:
> 
> [2013-07-02 10:46:26,148][DEBUG][transport.netty] [Caiera]  
> connected to node  
> [[Aardwolf][GDm3DJCFSbiaohcW0G1vKA][inet[/x.x.x.x:9300]]{client=tru  
> , data=false}]  
> [2013-07-02 10:46:26,151][WARN][discovery.zen.ping.multicast] [Caiera]  
> received ping response ping\_response{target  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [1]  
> [2013-07-02 10:46:27,670][WARN][discovery.zen.ping.multicast] [Caiera]  
> received ping response ping\_response{target  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [1]  
> [2013-07-02 10:46:29,177][WARN][discovery.zen.ping.multicast] [Caiera]  
> received ping response ping\_response{target  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [2]  
> [2013-07-02 10:46:30,683][WARN][discovery.zen.ping.multicast] [Caiera]  
> received ping response ping\_response{target  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [2]  
> [2013-07-02 10:46:32,180][WARN][discovery.zen.ping.multicast] [Caiera]  
> received ping response ping\_response{target  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [3]  
> [2013-07-02 10:46:33,679][WARN][discovery.zen.ping.multicast] [Caiera]  
> received ping response ping\_response{target  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [3]  
> [2013-07-02 10:46:35,181][WARN][discovery.zen.ping.multicast] [Caiera]  
> received ping response ping\_response{target  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/10.  
> 43.13.57:9300]]], master  
> [[Caiera][Fhm9sxcbS4myeJRVKsehzA][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [4]
> 
> On the client I see the following - which seems to indicate that it can't  
> find the master.
> 
> Jul 02, 2013 10:46:56 AM org.elasticsearch.discovery  
> WARNING: [Aardwolf] waited for 30s and no initial state was set by the  
> discovery  
> Jul 02, 2013 10:46:56 AM org.elasticsearch.discovery  
> INFO: [Aardwolf] elasticsearch/GDm3DJCFSbiaohcW0G1vKA  
> Jul 02, 2013 10:46:56 AM org.elasticsearch.http  
> INFO: [Aardwolf] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]},  
> publish\_address {inet[/x.x.x.x:9200]}  
> Jul 02, 2013 10:46:56 AM org.elasticsearch.node  
> INFO: [Aardwolf] {0.90.1}[9556]: started  
> Loading....  
> Exception in thread "main"  
> org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> at  
> org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)
> 
> On Monday, July 1, 2013 11:58:10 AM UTC-6, Henri van den Bulk wrote:
> 
> > I'm building a simple Java Client same as mentioned posted under Java  
> > client can't start a node.[https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster\_name[elasticsearch]}$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ](https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster_name%5Belasticsearch%5D%7D$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ) But  
> > I did not see a resolution there.
> > 
> > Both the Elasticsearch node instance and the client are running on my  
> > local machine. Firewall is not blocking connections as all firewalls are  
> > shutdown and I have tested the ports.
> > 
> > NodeBuilder builder = nodeBuilder();  
> > builder.client(true);  
> > // Build and start the node.  
> > node = builder.node();  
> > client = node.client();
> > 
> > On the node I keep getting the following logs:
> > 
> > master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]],  
> > cluster\_name[elasticsearch]} with no matching id [21]
> > 
> > The client gets:
> > 
> > Exception in thread "main"  
> > org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> > at  
> > org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> > at  
> > org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> > at java.lang.Thread.run(Unknown Source)
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Henri\_van\_den\_Bulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henri_van_den_bulk/32/1671_2.png) [@Henri\_van\_den\_Bulk](https://discuss.elastic.co/u/Henri_van_den_Bulk)\
**Post date:** [July 2, 2013, 6:16pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/11 "2013-07-02T18:16:29Z")

</div>

Thanks that worked

On Tuesday, July 2, 2013 10:49:36 AM UTC-6, Jörg Prante wrote:

> Do not use port 9200 for Java TransportClient
> 
> Jörg
> 
> Am 02.07.13 17:58, schrieb Henri van den Bulk:
> 
> > How can I diagnose this issue more?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [July 2, 2013, 6:20pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/12 "2013-07-02T18:20:14Z")

</div>

The message "java.io.IOException: An existing connection was forcibly  
closed by the remote host" looks like you are on Windows? If so, are you  
sure you have enough privileges for the ports you use, or is another  
process protecting the network? You said no firewall, but there can be  
virus scanners etc.

Jörg

Am 02.07.13 20:16, schrieb Henri van den Bulk:

> Thanks that worked
> 
> On Tuesday, July 2, 2013 10:49:36 AM UTC-6, Jörg Prante wrote:
> 
> ```
> Do not use port 9200 for Java TransportClient
> 
> Jörg
> 
> Am 02.07.13 17:58, schrieb Henri van den Bulk:
> > How can I diagnose this issue more?
> 
> ```
> 
> --  
> You received this message because you are subscribed to the Google  
> Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send  
> an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Henri\_van\_den\_Bulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henri_van_den_bulk/32/1671_2.png) [@Henri\_van\_den\_Bulk](https://discuss.elastic.co/u/Henri_van_den_Bulk)\
**Post date:** [July 5, 2013, 1:53pm UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/13 "2013-07-05T13:53:15Z")

</div>

Thanks everyone that helped with this.

On Monday, July 1, 2013 11:58:10 AM UTC-6, Henri van den Bulk wrote:

> I'm building a simple Java Client same as mentioned posted under Java  
> client can't start a node.[https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster\_name[elasticsearch]}$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ](https://groups.google.com/forum/#!searchin/elasticsearch/$20cluster_name%5Belasticsearch%5D%7D$20with$20no$20matching$20id/elasticsearch/dI9J3lzaMJY/8vYjN-qYKYIJ) But  
> I did not see a resolution there.
> 
> Both the Elasticsearch node instance and the client are running on my  
> local machine. Firewall is not blocking connections as all firewalls are  
> shutdown and I have tested the ports.
> 
> NodeBuilder builder = nodeBuilder();  
> builder.client(true);  
> // Build and start the node.  
> node = builder.node();  
> client = node.client();
> 
> On the node I keep getting the following logs:
> 
> master [[Kick-Ass][r6GYgCbfT46UuuFBguCuAQ][inet[/x.x.x.x:9300]]],  
> cluster\_name[elasticsearch]} with no matching id [21]
> 
> The client gets:
> 
> Exception in thread "main"  
> org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> at  
> org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:377)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:28am UTC](https://discuss.elastic.co/t/cluster-name-elasticsearch-with-no-matching-id/12607/14 "2017-07-06T02:28:02Z")

</div>


