# Upgrade elasticsearch from 1.x to 2.x

**URL:** <https://discuss.elastic.co/t/upgrade-elasticsearch-from-1-x-to-2-x/62160>\
**Category:** Elasticsearch\
**Created:** [October 4, 2016, 12:38pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-1-x-to-2-x/62160 "2016-10-04T12:38:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [October 4, 2016, 12:38pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-1-x-to-2-x/62160/1 "2016-10-04T12:38:50Z")

</div>

Hi All,

I am facing some kibana index issue while restarting elasticsearch up on upgrade.the following is the issue.

[2016-10-04 20:54:25,930][ERROR][bootstrap] Guice Exception: java.lang.IllegalStateException: unable to upgrade the mappings for the index [.kibana], reason: [mapper [version] cannot be changed from type [long] to [int]]  
Likely root cause: java.lang.IllegalArgumentException: mapper [version] cannot be changed from type [long] to [int]

I read mapping conflicts not accepting by es 2.x version so i got this point and if i removed .kibana index and recreated at ES side with correct mapping it should work am I correct?

I have lot's of visulaizations in production to export and import is there any easiest way to import these or upgrade fix at es side please suggest me.

Thanks  
phani

---

<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:** [October 5, 2016, 10:20am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-1-x-to-2-x/62160/2 "2016-10-05T10:20:18Z")

</div>

> [@Phani\_Nadiminti](#):
>
> if i removed .kibana index and recreated at ES side with correct mapping it should work am I correct?

Yes.

> [@Phani\_Nadiminti](#):
>
> is there any easiest way to import these or upgrade fix at es side

Nope, due to the conflicts. You could try getting the documents in the `.kibana` index as json and then post them into a new index. Or just use the export/import functionality.

---

<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, 10:14pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-1-x-to-2-x/62160/3 "2017-07-05T22:14:47Z")

</div>


