I upgraded to 7.16.1 a little while back and noticed today that when I try to list the installed plugins I get the following error:
C:\APPS\ELASTIC\logstash-7.16.1\bin>logstash-plugin.bat list "Using bundled JDK: ." No `java.exe' executable found on PATH. C:\APPS\ELASTIC\logstash-7.16.1\bin>
I haven't made any changes to logstash-plugin.bat or any of the other batch files that come with Logstash.
Running Logstash itself works fine, and appears to be finding the bundled JDK with no issues:
C:\APPS\ELASTIC\logstash-7.16.1\bin>logstash.bat --help "Using bundled JDK: ." OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. Usage: bin/logstash [OPTIONS] Options: -n, --node.name NAME Specify the name of this logstash instance, if no value is given it will default to the current hostname.
Has anyone else encountered this? Is it a known bug?
The only workaround I've got at this point is to set JAVA_HOME explicitly before running logstash.plugin.bat. That works but of course now I'm getting a warning that JAVA_HOME is deprecated, and I've had to remember to set this environment variable:
C:\APPS\ELASTIC\logstash-7.16.1\bin>logstash-plugin.bat list Using JAVA_HOME defined java: C:\APPS\ELASTIC\logstash-7.16.1\jdk WARNING: Using JAVA_HOME while Logstash distribution comes with a bundled JDK. DEPRECATION: The use of JAVA_HOME is now deprecated and will be removed starting from 8.0. Please configure LS_JAVA_HOME instead. logstash-codec-avro
My understanding from the documentation was that Logstash should now default to using its bundled JDK unless set otherwise.
Is the issue here that this doesn't work when calling the Ruby PluginManager?