Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

jar dependencies conflict with elasticsearch output plugin #9

Closed
sonya opened this issue Apr 1, 2016 · 4 comments
Closed

jar dependencies conflict with elasticsearch output plugin #9

sonya opened this issue Apr 1, 2016 · 4 comments

Comments

@sonya
Copy link
Contributor

sonya commented Apr 1, 2016

On various servers running Java 8, I had the latest logstash-output-elasticsearch plugin installed concurrently with this plugin, and Logstash was consistently crashing shortly after startup with a NoMethodError exception on set_validate_after_inactivity.

It turns out the elasticsearch plugin depends on manticore which calls setValidateAfterInactivity which was added in v4.4 of httpclient. manticore requires version 4.5 of httpclient in its gemspec, while this plugin ships with 4.3. I believe Java 8 is somehow loading these such that the 4.3 versions takes precedence.

I am able to fix the issue locally (and haven't run into any other problems) by swapping the the httpclient and httpcore files for newer versions in this plugin's runtime-jars folder.

@samcday
Copy link
Owner

samcday commented Apr 28, 2016

Hmmm interesting - what version of Logstash proper are you using? I haven't updated this plugin in a couple of months, and there's been a few releases of LS since then.

@sonya
Copy link
Contributor Author

sonya commented Apr 28, 2016

I am currently using 2.3. I believe that was the version I was using when I created this issue, although I was using 2.2 until shortly before and IIRC experienced the same dependency conflict between this package and the elasticsearch. Thanks!

@z0rc
Copy link

z0rc commented Oct 19, 2016

Hey, the same issue happened for me running logstash 2.4.0 from official tar.gz bundle.

@samcday
Copy link
Owner

samcday commented Jun 10, 2017

I've updated KPL to 0.12.5 and pushed version 5.0.0 of this plugin. If this is still an issue feel free to reopen.

@samcday samcday closed this as completed Jun 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants