Which: no javac for local plugin installation


(Lyndon Garvey) #1

I have a logstash dockerfile which uses the elastic docker 5.3.2 image (docker.elastic.co/logstash/logstash:5.3.2) as a base and installs 3 local gem plugins which aren't in the logstash plugin repository.

If I bump the version to 5.4.0, then any attempt to install a local plugin results in the following error:

which: no javac in (/usr/share/logstash/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

I've seen reference to a similar bug report, but not in the context of the pre-built docker images. See here: https://github.com/elastic/logstash/issues/5966

Any help would be appreciated!


(Leland Later) #2

Using the pre-built image docker.elastic.co/logstash/logstash:5.4.0 as a base for another Dockerfile, and attempting to run a local install with the command

RUN /usr/share/logstash/bin/logstash-plugin install logstash-input-beats

also yields the

 which: no javac in (/usr/share/logstash/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

How do you install a logstash plugin with the pre-built Docker image?


(Lyndon Garvey) #3

Hi llater,

I also posted an issue on github, and it was acknowledged and fixed. See here: https://github.com/elastic/logstash-docker/issues/33

I haven't tested it myself yet - as we're still using an older version. But it looks like you just need to try with the very latest image.

L


(system) #4

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