# Beta2 Java Client: java.nio.channels.UnresolvedAddressException

**URL:** <https://discuss.elastic.co/t/beta2-java-client-java-nio-channels-unresolvedaddressexception/15129>\
**Category:** Elasticsearch\
**Created:** [January 7, 2014, 6:32pm UTC](https://discuss.elastic.co/t/beta2-java-client-java-nio-channels-unresolvedaddressexception/15129 "2014-01-07T18:32:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [January 7, 2014, 6:32pm UTC](https://discuss.elastic.co/t/beta2-java-client-java-nio-channels-unresolvedaddressexception/15129/1 "2014-01-07T18:32:14Z")

</div>

Hi,

I'm having difficulty connecting with the Java client to 1.0.0.Beta2, the  
cluster is up and health, monitoring is fine using elasticsearch Head,  
elasticsearch HQ etc.

This is the stack trace I am getting:

> <https://gist.github.com/dav-rob/8304130>

thanks,

David.

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6df4a88e-82da-4ef7-ac33-f514e4e50711%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6df4a88e-82da-4ef7-ac33-f514e4e50711%40googlegroups.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:** [January 8, 2014, 1:42pm UTC](https://discuss.elastic.co/t/beta2-java-client-java-nio-channels-unresolvedaddressexception/15129/2 "2014-01-08T13:42:25Z")

</div>

There are FQDNs like [vcll36a-1001.equity.csfb.com](http://vcll36a-1001.equity.csfb.com) which can not be resolved  
by your DNS settings, it seems.

14 eth interfaces are quite cool to try to connect to, but I would reduce  
them by the network interface eth alias names ES provides  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-network.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-network.html)

Jörg

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHj-Vq17bisdYFSmMDHzrih6EkiWQCOoD5JehWpim-N3w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHj-Vq17bisdYFSmMDHzrih6EkiWQCOoD5JehWpim-N3w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [January 14, 2014, 4:39pm UTC](https://discuss.elastic.co/t/beta2-java-client-java-nio-channels-unresolvedaddressexception/15129/3 "2014-01-14T16:39:04Z")

</div>

Hi Jorg,

I move to an IP based config to make sure that DNS / FQDNs did not come  
into the equation:

Now I get the following:

2014-01-14 16:18:47,278 DEBUG - [Nightwatch] filtered ping responses:  
(filter\_client[true], filter\_data[false]) {none}

2014-01-14 16:18:47,324 DEBUG - [Nightwatch] connected to node  
[[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
2014-01-14 16:18:47,406 DEBUG - [Nightwatch] connected to node  
[[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
2014-01-14 16:18:47,407 DEBUG - [Nightwatch] disconnected from  
[[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
2014-01-14 16:18:47,408 DEBUG - [Nightwatch] filtered ping responses:  
(filter\_client[true], filter\_data[false]) {none}  
2014-01-14 16:18:47,450 WARN - [Nightwatch] failed to send ping to  
[[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
org.elasticsearch.transport.ReceiveTimeoutTransportException:  
[inet[/169.36.78.96:9300]][discovery/zen/unicast] request\_id [0] timed  
out after [38ms]

The full gist is here: [Beta2 Stack Trace with IPs · GitHub](https://gist.github.com/dav-rob/8421114)

The server logs look very quiet: [Beta2-Server-Logs · GitHub](https://gist.github.com/dav-rob/8421303)

Thanks for you help.

-David.

On Wednesday, 8 January 2014 13:42:25 UTC, Jörg Prante wrote:

> There are FQDNs like [vcll36a-1001.equity.csfb.com](http://vcll36a-1001.equity.csfb.com) which can not be  
> resolved by your DNS settings, it seems.
> 
> 14 eth interfaces are quite cool to try to connect to, but I would reduce  
> them by the network interface eth alias names ES provides  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-network.html)
> 
> Jörg

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dedd2872-eee6-4a65-9e8d-2e18ac838cba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dedd2872-eee6-4a65-9e8d-2e18ac838cba%40googlegroups.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:** [January 14, 2014, 4:53pm UTC](https://discuss.elastic.co/t/beta2-java-client-java-nio-channels-unresolvedaddressexception/15129/4 "2014-01-14T16:53:28Z")

</div>

Did you change some settings? Timeout seems to be very low here.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 14 janv. 2014 à 17:39, davrob2 [daviroberts@gmail.com](mailto:daviroberts@gmail.com) a écrit :

> Hi Jorg,
> 
> I move to an IP based config to make sure that DNS / FQDNs did not come into the equation:
> 
> Now I get the following:
> 
> 2014-01-14 16:18:47,278 DEBUG - [Nightwatch] filtered ping responses: (filter\_client[true], filter\_data[false]) {none}  
> 2014-01-14 16:18:47,324 DEBUG - [Nightwatch] connected to node [[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
> 2014-01-14 16:18:47,406 DEBUG - [Nightwatch] connected to node [[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
> 2014-01-14 16:18:47,407 DEBUG - [Nightwatch] disconnected from [[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
> 2014-01-14 16:18:47,408 DEBUG - [Nightwatch] filtered ping responses: (filter\_client[true], filter\_data[false]) {none}  
> 2014-01-14 16:18:47,450 WARN - [Nightwatch] failed to send ping to [[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
> org.elasticsearch.transport.ReceiveTimeoutTransportException: [inet[/169.36.78.96:9300]][discovery/zen/unicast] request\_id [0] timed out after [38ms]
> 
> The full gist is here: [Beta2 Stack Trace with IPs · GitHub](https://gist.github.com/dav-rob/8421114)
> 
> The server logs look very quiet: [Beta2-Server-Logs · GitHub](https://gist.github.com/dav-rob/8421303)
> 
> Thanks for you help.
> 
> -David.
> 
> On Wednesday, 8 January 2014 13:42:25 UTC, Jörg Prante wrote:
> 
> > There are FQDNs like [vcll36a-1001.equity.csfb.com](http://vcll36a-1001.equity.csfb.com) which can not be resolved by your DNS settings, it seems.
> > 
> > 14 eth interfaces are quite cool to try to connect to, but I would reduce them by the network interface eth alias names ES provides [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-network.html)
> > 
> > Jörg
> 
> --  
> 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).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dedd2872-eee6-4a65-9e8d-2e18ac838cba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dedd2872-eee6-4a65-9e8d-2e18ac838cba%40googlegroups.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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/F8D0C4B4-45E1-45FE-9312-8BFBE753ABAD%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/F8D0C4B4-45E1-45FE-9312-8BFBE753ABAD%40pilato.fr).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [January 14, 2014, 5:14pm UTC](https://discuss.elastic.co/t/beta2-java-client-java-nio-channels-unresolvedaddressexception/15129/5 "2014-01-14T17:14:22Z")

</div>

Hi David,

Thanks for the reply, actually this all comes down to inheriting some  
config that goes back 2 years, which was this:

discovery:  
zen:  
initial\_ping\_timeout: 30

I changed this to:

discovery:  
zen:  
ping\_timeout: 30s

all is well now, thanks.

-David.

On Tuesday, 14 January 2014 16:53:28 UTC, David Pilato wrote:

> Did you change some settings? Timeout seems to be very low here.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 14 janv. 2014 à 17:39, davrob2 \<[davir...@gmail.com](mailto:davir...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> Hi Jorg,
> 
> I move to an IP based config to make sure that DNS / FQDNs did not come  
> into the equation:
> 
> Now I get the following:
> 
> 2014-01-14 16:18:47,278 DEBUG - [Nightwatch] filtered ping responses:  
> (filter\_client[true], filter\_data[false]) {none}
> 
> 2014-01-14 16:18:47,324 DEBUG - [Nightwatch] connected to node  
> [[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
> 2014-01-14 16:18:47,406 DEBUG - [Nightwatch] connected to node  
> [[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
> 2014-01-14 16:18:47,407 DEBUG - [Nightwatch] disconnected from  
> [[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
> 2014-01-14 16:18:47,408 DEBUG - [Nightwatch] filtered ping responses:  
> (filter\_client[true], filter\_data[false]) {none}  
> 2014-01-14 16:18:47,450 WARN - [Nightwatch] failed to send ping to  
> [[#zen\_unicast\_1#][inet[/169.36.78.96:9300]]]  
> org.elasticsearch.transport.ReceiveTimeoutTransportException:  
> [inet[/169.36.78.96:9300]][discovery/zen/unicast] request\_id [0] timed  
> out after [38ms]
> 
> The full gist is here: [Beta2 Stack Trace with IPs · GitHub](https://gist.github.com/dav-rob/8421114)
> 
> The server logs look very quiet: [Beta2-Server-Logs · GitHub](https://gist.github.com/dav-rob/8421303)
> 
> Thanks for you help.
> 
> -David.
> 
> On Wednesday, 8 January 2014 13:42:25 UTC, Jörg Prante wrote:
> 
> > There are FQDNs like [vcll36a-1001.equity.csfb.com](http://vcll36a-1001.equity.csfb.com) which can not be  
> > resolved by your DNS settings, it seems.
> > 
> > 14 eth interfaces are quite cool to try to connect to, but I would reduce  
> > them by the network interface eth alias names ES provides  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-network.html)
> > 
> > Jörg
> > 
> > --  
> > 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:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/dedd2872-eee6-4a65-9e8d-2e18ac838cba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dedd2872-eee6-4a65-9e8d-2e18ac838cba%40googlegroups.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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0f0d7ab2-e7e4-4ce2-8fc6-f2d440ca1c0f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0f0d7ab2-e7e4-4ce2-8fc6-f2d440ca1c0f%40googlegroups.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, 1:56am UTC](https://discuss.elastic.co/t/beta2-java-client-java-nio-channels-unresolvedaddressexception/15129/6 "2017-07-06T01:56:51Z")

</div>


