# Enabled basic authentication in ES 2.1 on YARN

**URL:** <https://discuss.elastic.co/t/enabled-basic-authentication-in-es-2-1-on-yarn/38318>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [January 4, 2016, 2:11pm UTC](https://discuss.elastic.co/t/enabled-basic-authentication-in-es-2-1-on-yarn/38318 "2016-01-04T14:11:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johannes\_Zillmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johannes_zillmann/32/6939_2.png) [@Johannes\_Zillmann](https://discuss.elastic.co/u/Johannes_Zillmann)\
**Post date:** [January 4, 2016, 2:11pm UTC](https://discuss.elastic.co/t/enabled-basic-authentication-in-es-2-1-on-yarn/38318/1 "2016-01-04T14:11:59Z")

</div>

Hi there,

i'm running ES 2.1 on top of YARN.  
After reading [https://www.elastic.co/blog/elasticsearch-yarn-and-ssl](https://www.elastic.co/blog/elasticsearch-yarn-and-ssl) i thought its possible to enable basic authentication for the ES-cluster out of the box.  
Is that really true and if so, how to enabled it ?  
Because so far i found only documentation on setting user and password for an client, but not for the server !??

best  
Johannes

---

<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:** [January 9, 2016, 1:11pm UTC](https://discuss.elastic.co/t/enabled-basic-authentication-in-es-2-1-on-yarn/38318/2 "2016-01-09T13:11:57Z")

</div>

That section refers to the client (where the user and password make sense). If you want to customize your ES installation in YARN, the easiest and simplest thing to do is to simply modify the Elasticsearch zip before deploying it into the cluster as [described in the docs](https://www.elastic.co/guide/en/elasticsearch/hadoop/master/ey-usage.html#yarn-cfg-es).

Note that YARN really is about compute - it doesn't provide (yet) provisioning (among other things needed for long running services).

---

<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/enabled-basic-authentication-in-es-2-1-on-yarn/38318/3 "2017-07-06T13:26:41Z")

</div>


