# Upgrading java with elasticsearch

**URL:** <https://discuss.elastic.co/t/upgrading-java-with-elasticsearch/290946>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [December 4, 2021, 8:31am UTC](https://discuss.elastic.co/t/upgrading-java-with-elasticsearch/290946 "2021-12-04T08:31:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethical20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethical20/32/68123_2.png) [@ethical20](https://discuss.elastic.co/u/ethical20)\
**Post date:** [December 4, 2021, 8:31am UTC](https://discuss.elastic.co/t/upgrading-java-with-elasticsearch/290946/1 "2021-12-04T08:31:10Z")

</div>

Hi,

I've upgraded Elasticsearch from 7.13 to 7.15 successfully using:

```auto
sudo apt-get update && sudo apt-get install elasticsearch

```

But in the upgrade steps listed in elastic documentation, number 4 ( Java High Level REST Client: dependency configuration) lists that there is a java configuration that should be done.

Upgrade the components of your Elastic Stack in the following order:

1. Elasticsearch Hadoop: install instructions
2. Elasticsearch: upgrade instructions
3. Kibana: upgrade instructions
4. Java High Level REST Client: dependency configuration
5. Logstash: upgrade instructions
6. Beats: upgrade instructions
7. APM Server: upgrade instructions
8. Elastic Agent: upgrade instructions

Is java updated automatically when Elasticsearch is updated? or should I do this step alone as it is listed?

honestly I don't understand where should I configure (which files) in Java High Level REST Client: dependency configuration, and is this a must or not.

Regards,

---

<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:** [December 4, 2021, 9:23am UTC](https://discuss.elastic.co/t/upgrading-java-with-elasticsearch/290946/2 "2021-12-04T09:23:17Z")

</div>

It means that if you are writing a Java application, which connects to the Elasticsearch cluster you are upgrading, with the HLCLIENT, you should also upgrade it by changing the version in your dependency manager files (pom.xml if you are using Maven).

If you are not in the case I described, just skip that part.

---

<div class="post-metadata">

**Author:** ![ethical20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethical20/32/68123_2.png) [@ethical20](https://discuss.elastic.co/u/ethical20)\
**Post date:** [December 4, 2021, 9:36am UTC](https://discuss.elastic.co/t/upgrading-java-with-elasticsearch/290946/3 "2021-12-04T09:36:54Z")

</div>

perfect many thanks.

---

<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:** [January 1, 2022, 9:37am UTC](https://discuss.elastic.co/t/upgrading-java-with-elasticsearch/290946/4 "2022-01-01T09:37:09Z")

</div>

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