Could not find or load main class org.elasticsearch.plugins.PluginManagerCliParser

(Wei Huang) #1

I am trying to upgrade ES from 2.0.1 to 5.5.1, elasticsearch-5.5.1.jar giving follow error:
Could not find or load main class org.elasticsearch.plugins.PluginManagerCliParser

What is the proper way to upgrade ES from 2.0.1 to 5.5.1?
I am simply replacing lib folder jars into existing one, because our application has custom ssl plugins and infrastructure stuff.

(Ryan Ernst) #2

The lib directory is not sufficient. You should remove your existing installation, and install a fresh copy of the new elasticsearch version. In this case, it seems you are still using the old bin scripts.

(Wei Huang) #3

I compared the bin folder and patch in the differences, now bin/plugin uses PluginManagerCliParser, so this error is resolved.

Now next hurdle, What does this exception mean:

Exception in thread "main" java.lang.NoSuchFieldError: LUCENE_5_3_1
at org.elasticsearch.Version.(
at org.elasticsearch.common.xcontent.XContentBuilder.builder(
at org.elasticsearch.common.settings.Setting.arrayToParsableString(
at org.elasticsearch.common.settings.Setting.lambda$listSetting$29(
at org.elasticsearch.common.settings.Setting$2.getRaw(
at org.elasticsearch.common.settings.Setting.lambda$listSetting$27(
at org.elasticsearch.common.settings.Setting.listSetting(
at org.elasticsearch.common.settings.Setting.listSetting(
at org.elasticsearch.env.Environment.(
at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(
at org.elasticsearch.cli.EnvironmentAwareCommand.createEnv(
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(
at org.elasticsearch.cli.MultiCommand.execute(
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(
at org.elasticsearch.cli.Command.main(
at org.elasticsearch.plugins.PluginCli.main(

(Wei Huang) #4

After removing old lucene jar, only keep new lucene jar from 5.5.1, the above exception is gone.

(system) #5

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