# Unable to create remote node client

**URL:** <https://discuss.elastic.co/t/unable-to-create-remote-node-client/20649>\
**Category:** Elasticsearch\
**Created:** [November 8, 2014, 5:21pm UTC](https://discuss.elastic.co/t/unable-to-create-remote-node-client/20649 "2014-11-08T17:21:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raidex\_sym](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@raidex\_sym](https://discuss.elastic.co/u/raidex_sym)\
**Post date:** [November 8, 2014, 5:21pm UTC](https://discuss.elastic.co/t/unable-to-create-remote-node-client/20649/1 "2014-11-08T17:21:13Z")

</div>

Hi all --

I have a 4-node cluster and I am trying to have several remote node clients  
join the cluster to perform some ETL in parallel. I have disabled multicast  
since my cloud provider blocks it, and I am configuring the client as shown  
below (Scala) to hold no data and be a remote client. The connection goes  
through successfully, but it seems like the client does not join the target  
cluster -- despite the apparently successful connection, the query fails  
stating the index does not exist. I have checked that the query works  
correctly using the transport client -- only having throuble with node  
connections, which I really need since I'm trying to reach maximum  
throughput for reindexing operations.

val props = new Properties()  
props.setProperty("discovery.zen.ping.multicast.enabled", "false")  
props.setProperty("cluster.name", "mycluster")  
props.setProperty("node.client", "true")  
props.setProperty("node.data", "false")  
props.setProperty("node.local", "false")  
props.setProperty("gateway.type", "none")  
props.setProperty("discovery.zen.ping.unicast.hosts",  
"""node05,node06,node07,node08""")  
val settings = ImmutableSettings.settingsBuilder().put(props).build()  
val node = NodeBuilder.nodeBuilder().settings(settings).build()  
val esClient = node.client  
val out =  
esClient.prepareSearch("myindex").setTypes("mydoctype").setSource("""{"query":{"match\_all":{}}}""").execute.actionGet

Many thanks in advance.

--  
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/3bc0027d-1794-4dba-ae17-c2694f603ebc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3bc0027d-1794-4dba-ae17-c2694f603ebc%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:51am UTC](https://discuss.elastic.co/t/unable-to-create-remote-node-client/20649/2 "2017-07-06T00:51:17Z")

</div>

Closed on July 6, 2017, 12:51am UTC


