# Upgrade Elasticsearch from 7.8.1 to 7.14.2

**URL:** <https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-8-1-to-7-14-2/285217>\
**Category:** Elasticsearch\
**Created:** [September 27, 2021, 10:04am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-8-1-to-7-14-2/285217 "2021-09-27T10:04:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete\_Watcharawit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pete_watcharawit/32/74140_2.png) [@Pete\_Watcharawit](https://discuss.elastic.co/u/Pete_Watcharawit)\
**Post date:** [September 27, 2021, 10:04am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-8-1-to-7-14-2/285217/1 "2021-09-27T10:04:17Z")

</div>

Hello, I am having two issues with the upgrade from 7.8.1 to 7.14.2

1. I downloaded the tar.gz file for 7.14.2 and launched the Elasticsearch instance by running /bin/Elasticsearch. The instance updates existing indices and uses them. However, it seems like I am unable to go back and launch 7.8.1 Elasticsearch since it returns an exception: **IndexFormatTooNewException**. Is there a way to rollback to 7.8.1?
2. there is an issue with this import  
`import org.elasticsearch.common.unit.TimeValue;`  
when changing the version in **pom.xml** maven dependency from 7.8.1 to 7.14.2  
The code does not compile and I cannot find a solution. A part of the code is dependent on this import. Please help!

```auto
        <properties>
            <es.version>7.14.2</es.version>
        </properties>
        <dependency>
            <groupId>org.elasticsearch</groupId>
            <artifactId>elasticsearch</artifactId>
            <version>${es.version}</version>
        </dependency>
        <dependency>
            <groupId>org.elasticsearch</groupId>
            <artifactId>elasticsearch-core</artifactId>
            <version>${es.version}</version>
        </dependency>

```

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 27, 2021, 10:07am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-8-1-to-7-14-2/285217/2 "2021-09-27T10:07:20Z")

</div>

> [@Pete\_Watcharawit](#):
>
> Is there a way to rollback to 7.8.1?

That would require you to restore a snapshot taken prior to the upgrade. Elasticsearch does otherwise not support downgrading.

---

<div class="post-metadata">

**Author:** ![Pete\_Watcharawit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pete_watcharawit/32/74140_2.png) [@Pete\_Watcharawit](https://discuss.elastic.co/u/Pete_Watcharawit)\
**Post date:** [September 27, 2021, 10:12am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-8-1-to-7-14-2/285217/3 "2021-09-27T10:12:14Z")

</div>

what about the second question? I think the import uses Elasticsearch-core as a dependency. But it fails to compile.

 ![Screenshot from 2021-09-27 17-16-44](https://us1.discourse-cdn.com/elastic/original/3X/8/3/83f4eadd5f9cb6fc99083d34c8077c351e7d7917.png)

---

<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 27, 2021, 10:21am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-8-1-to-7-14-2/285217/4 "2021-09-27T10:21:29Z")

</div>

Have a look at

> <https://github.com/elastic/elasticsearch/pull/73909#issuecomment-892500893>
>
> When libs/core was created, several classes were moved from server's
> o.e.common… package, but they were not moved to a new package. Split
> packages need to go away long term, so that Elasticsearch can even think
> about modularization. This commit moves all the classes under o.e.common
> in core to o.e.core.
> 
> relates #73784

---

<div class="post-metadata">

**Author:** ![Pete\_Watcharawit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pete_watcharawit/32/74140_2.png) [@Pete\_Watcharawit](https://discuss.elastic.co/u/Pete_Watcharawit)\
**Post date:** [September 27, 2021, 10:33am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-8-1-to-7-14-2/285217/5 "2021-09-27T10:33:23Z")

</div>

`import org.elasticsearch.common.unit.TimeValue;`  
should be replaced by:  
`import org.elasticsearch.core.TimeValue;`

This should solve the problem. Let me try. Thank you.

---

<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:** [October 25, 2021, 10:34am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-8-1-to-7-14-2/285217/6 "2021-10-25T10:34:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
