I set up a logstash 5.0.0 and downgraded the kafka plugin version as described in the breaking changes document (https://www.elastic.co/guide/en/logstash/5.0/breaking-changes.html) because our kafka cluster run version 0.9
bin/logstash-plugin list --verbose | grep kafka
logstash-input-kafka (4.0.0)
logstash-output-kafka (4.0.1)
When I use this plugin, logstash fails to start, giving me the following error message:
[ERROR][logstash.agent ] Pipeline aborted due to error {:exception=>#<NameError: uninitialized constant LogStash::Logger>, :backtrace=>["org/jruby/RubyModule.java:2719:in const_missing'", "/appdata/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/logstash-input-kafka-4.0.0/lib/logstash/inputs/kafka.rb:136:inregister'"
My start command looks like this:
logstash-5.0.0$ bin/logstash -f /path/to/configs/something.conf
and it boots for any configuration that doesn't make use of the kafka input.
[2016-11-15T09:01:25,079][DEBUG][logstash.registry ] Problems loading a plugin with {:type=>"input", :name=>#<LogStash::Registry::Plugin:0xaf3b487 @type="input", @name="kafka">, :path=>"logstash/inputs/kafka", :error=>#<LogStash::EnvironmentError: Could not find jar files under /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-kafka-4.1.0/vendor/jar-dependencies/runtime-jars/*.jar>}
[2016-11-15T09:01:25,080][DEBUG][logstash.plugin ] Problems loading the plugin with {:type=>"input", :name=>"kafka", :path=>"logstash/inputs/kafka"}
[2016-11-15T09:01:25,086][ERROR][logstash.agent ] :reason=>"Couldn't find any input plugin named 'kafka'. Are you sure this is correct? Trying to load the kafka input plugin resulted in this error: Problems loading the requested plugin named kafka of type input.", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/plugin.rb:127:in `lookup'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:413:in `plugin'", "(eval):8:in `initialize'", "org/jruby/RubyKernel.java:1079:in `eval'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:90:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:195:in `create_pipeline'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:87:in `register_pipeline'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:258:in `execute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:174:in `run'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "/usr/share/logstash/lib/bootstrap/environment.rb:68:in `(root)'"]}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.