Hello,
I'm able to install Elasticsearch 5.0 and Kibana 5.0 successfully.
Running on Linux 3.10.0-123.el7.x86_64.
Installing Logstash 5.0 through YUM following the steps provided in https://www.elastic.co/guide/en/logstash/5.0/installing-logstash.html and facing issue which says "Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME"
Verified Java version:
$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
Using the following repo config
[logstash-5.x]
name=Elastic repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x-prerelease/yum
gpgcheck=0
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
Installed logstash using sudo yum install logstash
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
** Installing : 1:logstash-5.0.0-1.noarch 1/1**
Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME.
warning: %post(logstash-1:5.0.0-1.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package 1:logstash-5.0.0-1.noarch
** Verifying : 1:logstash-5.0.0-1.noarch 1/1**
Installed:
** logstash.noarch 1:5.0.0-1
Complete!
I do have JAVA_HOME configured and PATH as well.
$echo $JAVA_HOME
/opt/jdk1.8.0_101
$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/wmsadmin/.local/bin:/home/wmsadmin/bin:/opt/jdk1.8.0_101/bin:/opt/jdk1.8.0_101/jre/bin
Please help how to fix this issue. Already spent much time trying to figure this out .
Appreciate your help.
Regards
VJ.