# Elasticsearch transport client with url path

**URL:** <https://discuss.elastic.co/t/elasticsearch-transport-client-with-url-path/19985>\
**Category:** Elasticsearch\
**Created:** [September 27, 2014, 12:22am UTC](https://discuss.elastic.co/t/elasticsearch-transport-client-with-url-path/19985 "2014-09-27T00:22:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shakul](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@shakul](https://discuss.elastic.co/u/shakul)\
**Post date:** [September 27, 2014, 12:22am UTC](https://discuss.elastic.co/t/elasticsearch-transport-client-with-url-path/19985/1 "2014-09-27T00:22:48Z")

</div>

My elasticsearch wrapped in tomcat using transport ware is up and running in a cluster of 20 machines on a specific path /essearch. I have load balancer before cluster with dns, so i access elastic search using, [www.dns.com/essearch/](http://www.dns.com/essearch/)

Now, im trying to use the Bulkprocessor to add / update docs in bulk. The elasticsearch TransportClient, only takes in hostname and port and there is no way to specify the path or direct url.

And transport client fails to connect as it doenst fine any nodes on the host and port.

How to specify path in the transport client ?

Thanks

Also posted in [http://stackoverflow.com/questions/26069555/elasticsearch-transport-client-with-url-path](http://stackoverflow.com/questions/26069555/elasticsearch-transport-client-with-url-path)

---

<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:** [September 29, 2014, 12:52pm UTC](https://discuss.elastic.co/t/elasticsearch-transport-client-with-url-path/19985/2 "2014-09-29T12:52:11Z")

</div>

Transport Client does not do REST calls. There is no path involved.  
So you don't have to set a path.

Note that transport is using 93xx ports but HTTP Rest layer uses 92xx ports.  
If you want to use Transport client, then don't forget to use the right port.

My 2 cents.

--  
David Pilato | Technical Advocate | [elasticsearch.com](http://elasticsearch.com)  
[david.pilato@elasticsearch.com](mailto:david.pilato@elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 29 septembre 2014 à 10:21:12, shakul ([shakul.hameed+es@gmail.com](mailto:shakul.hameed+es@gmail.com)) a écrit:

My elasticsearch wrapped in tomcat using transport ware is up and running in  
a cluster of 20 machines on a specific path /essearch. I have load balancer  
before cluster with dns, so i access elastic search using,  
[www.dns.com/essearch/](http://www.dns.com/essearch/)

Now, im trying to use the Bulkprocessor to add / update docs in bulk. The  
elasticsearch TransportClient, only takes in hostname and port and there is  
no way to specify the path or direct url.

And transport client fails to connect as it doenst fine any nodes on the  
host and port.

How to specify path in the transport client ?

Thanks

Also posted in

> <https://stackoverflow.com/questions/26069555/elasticsearch-transport-client-with-url-path>

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/elasticsearch-transport-client-with-url-path-tp4064121.html](http://elasticsearch-users.115913.n3.nabble.com/elasticsearch-transport-client-with-url-path-tp4064121.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
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/1411777369010-4064121.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1411777369010-4064121.post%40n3.nabble.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/etPan.542955fb.12200854.8751%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.542955fb.12200854.8751%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shakul](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@shakul](https://discuss.elastic.co/u/shakul)\
**Post date:** [September 29, 2014, 7:53pm UTC](https://discuss.elastic.co/t/elasticsearch-transport-client-with-url-path/19985/3 "2014-09-29T19:53:44Z")

</div>

Thank you dadoonet. I changed the transport in yml, and forgot to give the me correct port in transport client. Now it works fine.

---

<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:59am UTC](https://discuss.elastic.co/t/elasticsearch-transport-client-with-url-path/19985/4 "2017-07-06T00:59:14Z")

</div>


