Logstash plugin installation

Hi

I am trying to install logstash-plugins in centos 7 by using following command
/bin>./logstash-plugin install logstash-input-mongodb

But it gives error as following

Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME.

I already set JAVA_HOME
How can i resolve it?

Show ur enviroment

env |grep JAVA_HOME
env |grep PATH

Follow this tutorial for installing Java 8 centos and set JAVA_HOME and PATH. Everything is GOOD !

I follow this and set java home as follow

[BDG@bdg-hdp-three /]$ env |grep JAVA_HOME
JAVA_HOME=/usr/bin/java/jdk1.8.0_111
[BDG@bdg-hdp-three /]$ env |grep PATH
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/BDG/.local/bin:/home/BDG/bin:/usr/bin/java/jdk1.8.0_111/bin:/home/BDG/software/hadoop-2.6.0/bin
CLASSPATH=/usr/bin/java/jdk1.8.0_111/jre/lib/ext:/usr/bin/java/jdk1.8.0_111/lib/tools.jar
WINDOWPATH=1

still it gives same error

@tatdat
I resolve the issue by installing new java version and after that I set JAVA_HOME.
I got output

Thanks for help

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