# Issue with upgrading from 5.5.1 to 6.2.3

**URL:** <https://discuss.elastic.co/t/issue-with-upgrading-from-5-5-1-to-6-2-3/126156>\
**Category:** Elasticsearch\
**Created:** [March 29, 2018, 8:29pm UTC](https://discuss.elastic.co/t/issue-with-upgrading-from-5-5-1-to-6-2-3/126156 "2018-03-29T20:29:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavocristatus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavocristatus/32/29378_2.png) [@pavocristatus](https://discuss.elastic.co/u/pavocristatus)\
**Post date:** [March 29, 2018, 8:29pm UTC](https://discuss.elastic.co/t/issue-with-upgrading-from-5-5-1-to-6-2-3/126156/1 "2018-03-29T20:29:30Z")

</div>

I recently upgraded the Elasticsearch from 5.5.1 to using ElasticSearch 6.2.3  
I get the following error during execution in apache-spark 2.2.1

Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/common/logging/Loggers  
at org.elasticsearch.common.unit.ByteSizeValue.(ByteSizeValue.java:36)  
at org.elasticsearch.common.network.NetworkService.(NetworkService.java:56)  
at org.elasticsearch.transport.TcpTransport.(TcpTransport.java:151)  
at org.elasticsearch.client.transport.TransportClient.newPluginService(TransportClient.java:100)  
at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:130)  
at org.elasticsearch.client.transport.TransportClient.(TransportClient.java:273)  
at org.elasticsearch.transport.client.PreBuiltTransportClient.(PreBuiltTransportClient.java:128)

It appears that package org.elasticsearch.common.logging; in 6.2.3. is missing the Loggers.class and many others.

Here are the logging dependencies for compiling my application using Elasticsearch 6.2.3 in sbt

```
                     "org.apache.logging.log4j" % "log4j-api" % "2.9.1",
                     "org.apache.logging.log4j" % "log4j-core" % "2.9.1"
                     "org.elasticsearch" % "elasticsearch" % "6.2.3",
                     "org.elasticsearch.client" % "transport" % "6.2.3"

```

Any ideas on how to fix this issue? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mynameiskoko](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mynameiskoko](https://discuss.elastic.co/u/mynameiskoko)\
**Post date:** [April 18, 2018, 8:25am UTC](https://discuss.elastic.co/t/issue-with-upgrading-from-5-5-1-to-6-2-3/126156/2 "2018-04-18T08:25:00Z")

</div>

Having the same problem, upgrading from 6.0.0 to 6.2.3. In elasticsearch-6.2.3.jar I can find ByteSizeValue.class however there's no Loggers.class. According to Github Loggers.java exists.

---

<div class="post-metadata">

**Author:** ![mynameiskoko](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mynameiskoko](https://discuss.elastic.co/u/mynameiskoko)\
**Post date:** [April 20, 2018, 2:27am UTC](https://discuss.elastic.co/t/issue-with-upgrading-from-5-5-1-to-6-2-3/126156/3 "2018-04-20T02:27:16Z")

</div>

Apparently they moved it out to elasticsearch-core.

---

<div class="post-metadata">

**Author:** ![tirupathi](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@tirupathi](https://discuss.elastic.co/u/tirupathi)\
**Post date:** [April 30, 2018, 5:18pm UTC](https://discuss.elastic.co/t/issue-with-upgrading-from-5-5-1-to-6-2-3/126156/4 "2018-04-30T17:18:41Z")

</div>

I have the same problem, is there any alternative?

---

<div class="post-metadata">

**Author:** ![pavocristatus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavocristatus/32/29378_2.png) [@pavocristatus](https://discuss.elastic.co/u/pavocristatus)\
**Post date:** [April 30, 2018, 9:20pm UTC](https://discuss.elastic.co/t/issue-with-upgrading-from-5-5-1-to-6-2-3/126156/5 "2018-04-30T21:20:00Z")

</div>

You need to use the following dependencies now for 6.2.3 upgrade:  
elasticsearch-core-6.2.3.jar  
elasticsearch-cli-6.2.3.jar  
elasticsearch-6.2.3.jar  
elasticsearch-rest-high-level-client-6.2.3.jar  
elasticsearch-rest-client-6.2.3.jar

---

<div class="post-metadata">

**Author:** ![tirupathi](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@tirupathi](https://discuss.elastic.co/u/tirupathi)\
**Post date:** [April 30, 2018, 10:11pm UTC](https://discuss.elastic.co/t/issue-with-upgrading-from-5-5-1-to-6-2-3/126156/6 "2018-04-30T22:11:13Z")

</div>

Thanks that worked, there was classpath change to include additional jars mentioned above

---

<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:** [May 28, 2018, 10:11pm UTC](https://discuss.elastic.co/t/issue-with-upgrading-from-5-5-1-to-6-2-3/126156/7 "2018-05-28T22:11:15Z")

</div>

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