Jar hell issue during loading custom plugin in elastic 8.4.1

Hello Team, we are facing below while loading one of our custom plugin into Elasticsearch 8.4.1. Kindly need your valuable inputs on below issue..

Exception in thread "main" java.lang.IllegalStateException: failed to load plugin authenticator due to jar hell
        at org.elasticsearch.plugins.PluginsUtils.checkBundleJarHell(PluginsUtils.java:267)
        at org.elasticsearch.plugins.PluginsUtils.preInstallJarHellCheck(PluginsUtils.java:203)
        at org.elasticsearch.plugins.cli.InstallPluginAction.jarHellCheck(InstallPluginAction.java:891)
        at org.elasticsearch.plugins.cli.InstallPluginAction.loadPluginInfo(InstallPluginAction.java:868)
        at org.elasticsearch.plugins.cli.InstallPluginAction.installPlugin(InstallPluginAction.java:899)
        at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:250)
        at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:89)
        at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
        at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:94)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
        at org.elasticsearch.cli.Command.main(Command.java:50)
        at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)
Caused by: java.lang.IllegalStateException: jar hell!
class: org.apache.http.Consts
jar1: /test/shared/Elasticsearch8-1.0.0/modules/x-pack-core/httpcore-4.4.13.jar
jar2: /test/config/elasticsearch8/nodes/dv01/plugins/.installing-6728363645143312652/httpcore-4.4.12.jar
        at org.elasticsearch.jdk.JarHell.checkClass(JarHell.java:315)
        at org.elasticsearch.jdk.JarHell.checkJarHell(JarHell.java:233)
        at org.elasticsearch.plugins.PluginsUtils.checkBundleJarHell(PluginsUtils.java:248)
        ... 12 more

Welcome!

I think that you tried to install a plugin right?
Which one was it? How did you install it? What was the output?

Please don't post unformatted code, logs, or configuration as it's very hard to read.

Instead, paste the text and format it with </> icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

I'm updating your post but please do it next time please.

1 Like