Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jar Hell when installing ingest-attachment plugin #410

Open
harshagarwal00 opened this issue Jun 18, 2022 · 1 comment
Open

Jar Hell when installing ingest-attachment plugin #410

harshagarwal00 opened this issue Jun 18, 2022 · 1 comment

Comments

@harshagarwal00
Copy link

When running:
bin/elasticsearch-plugin install ingest-attachment

I see:

Exception in thread "main" java.lang.IllegalStateException: failed to load plugin ingest-attachment due to jar hell at org.elasticsearch.plugins.PluginsService.checkBundleJarHell(PluginsService.java:475) at org.elasticsearch.plugins.InstallPluginCommand.jarHellCheck(InstallPluginCommand.java:609) at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:588) at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:707) at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:623) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:223) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:212) at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:75) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) at org.elasticsearch.cli.Command.main(Command.java:90) at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48) Caused by: java.lang.IllegalStateException: jar hell! class: org.slf4j.helpers.BasicMarker jar1: /home/azureuser/elassandra-6.2.3.38/plugins/.installing-2974073780624375496/slf4j-api-1.6.2.jar jar2: /home/azureuser/elassandra-6.2.3.38/lib/slf4j-api-1.7.25.jar

@harshagarwal00
Copy link
Author

harshagarwal00 commented Jun 18, 2022

Found the solution :)

From:
https://jarcasting.com/artifacts/com.strapdata.elasticsearch.plugin/ingest-attachment/
or even better try the official site:
https://search.maven.org/artifact/com.strapdata.elasticsearch.plugin/ingest-attachment/6.2.3.31/jar
and click downloads and then zip

Downloaded: ingest-attachment-6.2.3.31.zip

Then run:
bin/elasticsearch-plugin install file:"/home/sampleuser/ingest-attachment-6.2.3.31.zip"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant