# Upgrade elasticsearch 1.7.1 to 2.2

**URL:** https://discuss.elastic.co/t/upgrade-elasticsearch-1-7-1-to-2-2/41939
**Category:** Elasticsearch
**Created:** [February 16, 2016, 9:10pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-1-7-1-to-2-2/41939 "2016-02-16T21:10:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)
#### Post date: [February 16, 2016, 9:10pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-1-7-1-to-2-2/41939/1 "2016-02-16T21:10:50Z")

</div>

I upgraded our QA environment running centos 6.5 Elasticsearch 1.7.1 to 2.2  
I used the yum repository:

# yum -y install elasticsearch

When I tried to start Elasticsearch

# service elasticsearch start

I get the following error:  
java.lang.IllegalStateException: Could not load plugin descriptor for existing plugin [marvel]. Was the plugin built before 2.0?  
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:380)  
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:128)  
at org.elasticsearch.node.Node.(Node.java:146)  
at org.elasticsearch.node.Node.(Node.java:128)  
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)  
Caused by: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/marvel/plugin-descriptor.properties

Then I tried to install marvel 2.0 and I got another error:  
cd /usr/share/elasticsearch  
sudo bin/plugin install license

CONF\_FILE setting is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed.

---

<div class="post-metadata">

### Author: ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)
#### Post date: [February 16, 2016, 11:26pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-1-7-1-to-2-2/41939/2 "2016-02-16T23:26:50Z")

</div>

Hi,

Check /etc/sysconfig/elasticsearch (rpm) or /etc/default/elasticsearch (debian) for CONF\_FILE. And comment this out and make sure elasticsearch.yml is in the same directory as CONF\_DIR, presumably /etc/elasticsearch.

---

<div class="post-metadata">

### Author: ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)
#### Post date: [February 17, 2016, 4:02pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-1-7-1-to-2-2/41939/3 "2016-02-17T16:02:13Z")

</div>

Thank you, that fixed the problem

---

<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:15pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-1-7-1-to-2-2/41939/4 "2017-07-05T23:15:41Z")

</div>


