Issue with upgrading from 5.5.1 to 6.2.3

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.(
at org.elasticsearch.transport.TcpTransport.(
at org.elasticsearch.client.transport.TransportClient.newPluginService(
at org.elasticsearch.client.transport.TransportClient.buildTemplate(
at org.elasticsearch.client.transport.TransportClient.(
at org.elasticsearch.transport.client.PreBuiltTransportClient.(

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.

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 exists.

Apparently they moved it out to elasticsearch-core.

I have the same problem, is there any alternative?

You need to use the following dependencies now for 6.2.3 upgrade:

1 Like

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

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