# \[MasterNode\] failed to validate incoming join request from node \[{LocalNode}

**URL:** <https://discuss.elastic.co/t/masternode-failed-to-validate-incoming-join-request-from-node-localnode/145269>\
**Category:** Elasticsearch\
**Created:** [August 21, 2018, 2:07am UTC](https://discuss.elastic.co/t/masternode-failed-to-validate-incoming-join-request-from-node-localnode/145269 "2018-08-21T02:07:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agyepong](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@agyepong](https://discuss.elastic.co/u/agyepong)\
**Post date:** [August 21, 2018, 2:07am UTC](https://discuss.elastic.co/t/masternode-failed-to-validate-incoming-join-request-from-node-localnode/145269/1 "2018-08-21T02:07:21Z")

</div>

I am trying to connect from a Java application using a client node:  
Node elasticSearchNode = new org.elasticsearch.node.Node(settings.build());  
elasticSearchNode.start();  
Client elasticSearchClient = elasticSearchNode.client();

I am unable to connect to the master node. I get this error from master node:  
[2018-08-20T21:23:39,626][WARN][o.e.d.z.ZenDiscovery] [MasterNode] failed to validate incoming join request from node [{LocalNode}{xxx}{xxx}{xxx.21.240.1}{xxx.21.240.1:9301}]  
org.elasticsearch.transport.RemoteTransportException: [LocalNode][xxx.21.240.1:9301][internal:discovery/zen/join/validate]  
Caused by: java.lang.IllegalArgumentException: Unknown NamedWriteable [org.elasticsearch.cluster.metadata.MetaData$Custom][licenses]  
at org.elasticsearch.common.io.stream.NamedWriteableRegistry.getReader(NamedWriteableRegistry.java:112) ~[elasticsearch-6.3.2.jar:6.3.2]

They both us elasticsearch 6.3.2  
I am unable to install the license plugins because I cannot find them. I understand Node clients are being phased out but I need this because RestHighLevelClient does not implement DeleteByQuery and others yet.

How to configure the node client to communicate the needed license information to master node to make it happy?

---

<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:** [September 18, 2018, 2:07am UTC](https://discuss.elastic.co/t/masternode-failed-to-validate-incoming-join-request-from-node-localnode/145269/2 "2018-09-18T02:07:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
