# Logstash plugin installation

**URL:** https://discuss.elastic.co/t/logstash-plugin-installation/82896
**Category:** Logstash
**Created:** [April 19, 2017, 1:46pm UTC](https://discuss.elastic.co/t/logstash-plugin-installation/82896 "2017-04-19T13:46:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Nikparab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikparab/32/17493_2.png) [@Nikparab](https://discuss.elastic.co/u/Nikparab)
#### Post date: [April 19, 2017, 1:46pm UTC](https://discuss.elastic.co/t/logstash-plugin-installation/82896/1 "2017-04-19T13:46:52Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![tatdat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tatdat/32/113160_2.png) [@tatdat](https://discuss.elastic.co/u/tatdat)
#### Post date: [April 19, 2017, 1:53pm UTC](https://discuss.elastic.co/t/logstash-plugin-installation/82896/2 "2017-04-19T13:53:03Z")

</div>

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 !

---

<div class="post-metadata">

### Author: ![Nikparab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikparab/32/17493_2.png) [@Nikparab](https://discuss.elastic.co/u/Nikparab)
#### Post date: [April 19, 2017, 2:06pm UTC](https://discuss.elastic.co/t/logstash-plugin-installation/82896/3 "2017-04-19T14:06:59Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Nikparab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikparab/32/17493_2.png) [@Nikparab](https://discuss.elastic.co/u/Nikparab)
#### Post date: [April 20, 2017, 12:00pm UTC](https://discuss.elastic.co/t/logstash-plugin-installation/82896/4 "2017-04-20T12:00:12Z")

</div>

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

Thanks for help

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 18, 2017, 12:06pm UTC](https://discuss.elastic.co/t/logstash-plugin-installation/82896/5 "2017-05-18T12:06:40Z")

</div>

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