Logstash alpha4/alpha5/beta1 - Error while installing any plugin on CentOS #5966

Hi,

I've already created this as a bug report here, but maybe someone from community was able to address this problem faster: https://github.com/elastic/logstash/issues/5966

TLDR;

Installation of any plugin on CentOS (both local and remote) will end up with:

# /usr/share/logstash/bin/logstash-plugin install --local --no-verify /home/maciej/logstash-filter-translate-3.0.0.gemInstalling logstash-filter-translate
which: no javac in (/usr/local/sbin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core-event-java (5.0.0.pre.beta1), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.0.0.pre.beta1'` succeeds before bundling.

Was anyone able to sort this out anyhow?

Also Logstash 5.0.0 beta: translate filter is probably a dup of this.