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?