# Logstash plugin fails to run from source

**URL:** <https://discuss.elastic.co/t/logstash-plugin-fails-to-run-from-source/164041>\
**Category:** Logstash\
**Created:** [January 13, 2019, 2:35pm UTC](https://discuss.elastic.co/t/logstash-plugin-fails-to-run-from-source/164041 "2019-01-13T14:35:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sprrw](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@Sprrw](https://discuss.elastic.co/u/Sprrw)\
**Post date:** [January 13, 2019, 2:35pm UTC](https://discuss.elastic.co/t/logstash-plugin-fails-to-run-from-source/164041/1 "2019-01-13T14:35:16Z")

</div>

Hi,

First, please note that I'm pretty new to Ruby.

I would like to play around with the logstash-output-kafka plugin for educational purposes, but I can't get it to run even before I have made any modifications to it.

What I have done:

1. Installed Logstash (version 6.5.4)
2. Update the existing plugin (logstash-plugin update logstash-output-kafka)
3. Check existing version (logstash-plugin list --verbose | grep kafka)
4. Verify it is working by starting Logstash
5. Clone source code of the same version
6. Build the gem (gem build logstash-output-kafka.gemspec)
7. Install gem (logstash-plugin install logstash-output-kafka-8.0.0.gem)
8. Start Logstash

But it fails with  
`Couldn't find any output plugin named 'kafka'. Are you sure this is correct? Trying to load the kafka output plugin resulted in this error: Problems loading the requested plugin named kafka of type output. Error: RuntimeError you might need to reinstall the gem which depends on the missing jar or in case there is Jars.lock then resolve the jars with`lock\_jars`command\n\nno such file to load -- org/apache/kafka/kafka-clients/2.1.0/kafka-clients-2.1.0 (LoadError)`

I have tried to install dependencies according to the instructions on the Github page ([https://github.com/logstash-plugins/logstash-output-kafka](https://github.com/logstash-plugins/logstash-output-kafka)). I have tried with the JRuby binary used by Logstash as well as a freshly downloaded.  
Logstash always fails with the same error.

I have found lots of people reporting the same issue but no one seems to share an answer to what is missing.

What am I doing wrong?

Best regards

---

<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:** [February 10, 2019, 2:35pm UTC](https://discuss.elastic.co/t/logstash-plugin-fails-to-run-from-source/164041/2 "2019-02-10T14:35:18Z")

</div>

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