# Elasticsearch on YARN problem to identify GLOBAL URI

**URL:** <https://discuss.elastic.co/t/elasticsearch-on-yarn-problem-to-identify-global-uri/41375>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [February 10, 2016, 12:27pm UTC](https://discuss.elastic.co/t/elasticsearch-on-yarn-problem-to-identify-global-uri/41375 "2016-02-10T12:27:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaetanofabiano](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@gaetanofabiano](https://discuss.elastic.co/u/gaetanofabiano)\
**Post date:** [February 10, 2016, 12:27pm UTC](https://discuss.elastic.co/t/elasticsearch-on-yarn-problem-to-identify-global-uri/41375/1 "2016-02-10T12:27:15Z")

</div>

Dear All,  
I'm new on elastic search, so I'm sorry in advance if I'm doing some concectual error.

Following this guide [https://www.elastic.co/guide/en/elasticsearch/hadoop/current/ey-usage.html](https://www.elastic.co/guide/en/elasticsearch/hadoop/current/ey-usage.html)  
I installed and configured elastic serch running on Yarn, but now I have some doubt about.

after running this command  
sudo hadoop jar elasticsearch-yarn-2.2.0-rc1.jar -start containers=3 app.queue=alpha container.mem=512

if I go on my [http://master-ip-address:8088/cluster](http://master-ip-address:8088/cluster)  
i can see the application running

application\_1454674969620\_0082 root Elasticsearch-YARN ELASTICSEARCH alpha Wed Feb 10 13:03:29 0100 2016 N/A RUNNING UNDEFINED 4 4 1792 29.2 23.3   
ApplicationMaster 0

Only if I read on log i can obtain information about the rest uri of the elasticsearch REST API  
Below the log row

[2016-02-10 12:04:19,993][INFO][http] [Amphibius] publish\_address {cluster-machine1-address:9201}, bound\_addresses {[::]:9201}  
[2016-02-10 12:04:20,001][INFO][node] [Amphibius] started

Now if I use a client REST I am able to call the api using the following address  
cluster-machine1-address:9201

the PROBLEM IS:  
if I restart the elastic-searc jar on yarn the address change and have some like this  
cluster-machine2-address:9201

There is a way to have a "kind of proxy manager" to invoke?  
I mean I need a stable address to call.

Is there anybody that can help me.  
Thanks in advance.  
Gaetano

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [February 21, 2016, 6:37pm UTC](https://discuss.elastic.co/t/elasticsearch-on-yarn-problem-to-identify-global-uri/41375/2 "2016-02-21T18:37:36Z")

</div>

Unfortunately not and one of the reasons why the YARN integration is BETA.  
YARN does not provide any provisioning or network/ip guarantees, data/node affinity - basically support for long running services (whether it's ES, mysql, postgres, you name it).

---

<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, 1:26pm UTC](https://discuss.elastic.co/t/elasticsearch-on-yarn-problem-to-identify-global-uri/41375/3 "2017-07-06T13:26:08Z")

</div>


