# Upgrading elasticsearch from 1.7.3 to 2.1.1

**URL:** <https://discuss.elastic.co/t/upgrading-elasticsearch-from-1-7-3-to-2-1-1/39281>\
**Category:** Elasticsearch\
**Created:** [January 14, 2016, 10:18pm UTC](https://discuss.elastic.co/t/upgrading-elasticsearch-from-1-7-3-to-2-1-1/39281 "2016-01-14T22:18:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![trekr5](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@trekr5](https://discuss.elastic.co/u/trekr5)\
**Post date:** [January 14, 2016, 10:18pm UTC](https://discuss.elastic.co/t/upgrading-elasticsearch-from-1-7-3-to-2-1-1/39281/1 "2016-01-14T22:18:36Z")

</div>

Hello,

I'm in the process of upgrading elasticsearch 1.7.3 to 2.1.1 and have discovered that the default location for the elasticsearch.yml file (config file) has been changed from /etc/elasticsearch to /usr/share/elasticsearch/bin. I'm running elasticsearch 2.1.1 on Ubuntu 12.

I have tried passing this new location of the elasticsearch.yml as a variable within the /etc/init.d/elasticsearch file so that when the elasticsearch service starts up, it looks for the elasticsearch.yml file in /usr/share/elasticsearch/bin. However it doesn't, it continues to reference the old location (/etc/elasticsearch) for the elasticsearch.yml .

How do I ensure that the new location (/usr/share/elasticsearch/bin) is used by elasticsearch?

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 14, 2016, 10:27pm UTC](https://discuss.elastic.co/t/upgrading-elasticsearch-from-1-7-3-to-2-1-1/39281/2 "2016-01-14T22:27:25Z")

</div>

> [@trekr5](#):
>
> have discovered that the default location for the elasticsearch.yml file (config file) has been changed from /etc/elasticsearch to /usr/share/elasticsearch/bin

Nope, it hasn't, it's still `/etc/elasticsearch`.

---

<div class="post-metadata">

**Author:** ![trekr5](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@trekr5](https://discuss.elastic.co/u/trekr5)\
**Post date:** [January 14, 2016, 11:15pm UTC](https://discuss.elastic.co/t/upgrading-elasticsearch-from-1-7-3-to-2-1-1/39281/3 "2016-01-14T23:15:36Z")

</div>

I also asked this question and this config issue has also now affected my ability to install plugins i.e.

I get a CONF\_FILE error when I now attempt to install any plugin in ES 2.1.1.

I'm upgrading from 1.7.3 (where all my plugins worked fine) to 2.1.1 where they now don't.

Can you help?

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 14, 2016, 11:21pm UTC](https://discuss.elastic.co/t/upgrading-elasticsearch-from-1-7-3-to-2-1-1/39281/4 "2016-01-14T23:21:14Z")

</div>

What OS are you on, how did you install and how did you upgrade?

---

<div class="post-metadata">

**Author:** ![trekr5](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@trekr5](https://discuss.elastic.co/u/trekr5)\
**Post date:** [January 15, 2016, 9:12am UTC](https://discuss.elastic.co/t/upgrading-elasticsearch-from-1-7-3-to-2-1-1/39281/5 "2016-01-15T09:12:03Z")

</div>

Hi,

I'm on ubuntu 12.04 and upgrading ES from 1.7.3 to 2.1.1.

When I attempt to install a cloud-aws plugin, I receive the following error:

/usr/share/elasticsearch# bin/plugin install cloud-aws  
CONF\_FILE setting is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed.

I've placed the elasticsearch.yml in /usr/share/elasticsearch/bin for version 2.1.1.

I've also confirmed that I'm running the latest version of the /etc/init.d/elasticsearch file with the following lines.

# CONF\_FILE setting was removed

if [! -z "$CONF\_FILE"]; then  
echo "CONF\_FILE setting is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed."  
exit 1  
fi

I'm a bit confused because there is some documentation that says that the elasticsearch.yml should be placed in $ES\_HOME/bin for ES 2.1.1?

Thanks

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 15, 2016, 11:25pm UTC](https://discuss.elastic.co/t/upgrading-elasticsearch-from-1-7-3-to-2-1-1/39281/6 "2016-01-15T23:25:03Z")

</div>

> [@trekr5](#):
>
> I'm a bit confused because there is some documentation that says that the elasticsearch.yml should be placed in $ES\_HOME/bin for ES 2.1.1

Can you link to it?

Can you also provide the complete startup command and the corresponding output.

---

<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 5, 2017, 11:23pm UTC](https://discuss.elastic.co/t/upgrading-elasticsearch-from-1-7-3-to-2-1-1/39281/7 "2017-07-05T23:23:56Z")

</div>


