Nikparab
(Nikhil Chandrakant Parab)
April 19, 2017, 1:46pm
1
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?
tatdat
(Dat Pham Tat)
April 19, 2017, 1:53pm
2
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 !
Nikparab
(Nikhil Chandrakant Parab)
April 19, 2017, 2:06pm
3
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
Nikparab
(Nikhil Chandrakant Parab)
April 20, 2017, 12:00pm
4
@tatdat
I resolve the issue by installing new java version and after that I set JAVA_HOME.
I got output
Thanks for help
system
(system)
Closed
May 18, 2017, 12:06pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.