# Java node client failing to send join request to master

**URL:** <https://discuss.elastic.co/t/java-node-client-failing-to-send-join-request-to-master/22283>\
**Category:** Elasticsearch\
**Created:** [February 20, 2015, 3:01am UTC](https://discuss.elastic.co/t/java-node-client-failing-to-send-join-request-to-master/22283 "2015-02-20T03:01:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtuck9](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dtuck9](https://discuss.elastic.co/u/dtuck9)\
**Post date:** [February 20, 2015, 3:01am UTC](https://discuss.elastic.co/t/java-node-client-failing-to-send-join-request-to-master/22283/1 "2015-02-20T03:01:46Z")

</div>

Anyone have any idea where to start with this one? We're running our  
singular master/data node in a docker container, trying to connect via a  
Java node client on different boxes. Please help!!

INFO [2015-02-20 02:55:11,411] org.elasticsearch.discovery.ec2:  
[localhost] failed to send join request to master  
[[esNode][jU4Y42dtQfCPJn1-5jFfYw][esHost][inet[/255.255.255.255]]{master=true}],  
reason  
[RemoteTransportException[[esNode][inet[/255.255.255.255:9300]][internal:discovery/zen/join]];  
nested:  
NotSerializableTransportException[[org.elasticsearch.transport.ConnectTransportException]  
[localhost][inet[/255.255.255.255:9300]] connect\_timeout[30s]; connection  
timed out: /255.255.255.255:9300; ]; ]

elasticsearch.yml:

cloud:

aws:

```
access_key: awsAccessKey

secret_key: awsSecretKey

region: us-west-2

```

discovery:

type: ec2

ec2:

```
groups: elasticsearch

availability_zones: us-west-2a

tag:

  Elasticsearch: tag

```

network.public\_host: 255.255.255.255

network.publish\_host: 255.255.255.255

discovery.zen.ping.multicast.enabled: false

Java node client:

Settings settings = ImmutableSettings.settingsBuilder()  
.put("node.name", nodeName)  
.put("cloud.aws.access\_key", awsAccessKey)  
.put("cloud.aws.secret\_key", awsSecretKey)  
.put("cloud.aws.region", "us-west-2")  
.put("cloud.node.auto\_attributes", true)  
.put("discovery.type", "ec2")  
.put("discovery.ec2.groups", "elasticsearch")  
.put("discovery.ec2.availability\_zones", "us-west-2a")  
.put("discovery.ec2.tag.Elasticsearch", "devvpc")  
.put("discovery.zen.ping.multicast.enabled", false)  
.build();  
this.node = nodeBuilder()  
.clusterName(clusterName)  
.settings(settings)  
.client(true)  
.node();  
this.client = node.client();

--  
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/c56baa18-0956-4b88-a063-acd4db82374e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c56baa18-0956-4b88-a063-acd4db82374e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:31am UTC](https://discuss.elastic.co/t/java-node-client-failing-to-send-join-request-to-master/22283/2 "2017-07-06T00:31:20Z")

</div>


