Closed asifhj closed 10 years ago
Most likely the Kafka jars are in the wrong spot. Whats the path that are they extracted to? Was you logstash built with the make file or manually?
Installation mode: Manual Kafka jars are at: /home/abacus/kafka/logstash-1.4.0/vendor/jar/kafka_2.8.0-0.8.1
Make sure the jars are in /home/abacus/kafka/logstash-1.4.0/vendor/jar/kafka_2.8.0-0.8.1/libs instead of just /home/abacus/kafka/logstash-1.4.0/vendor/jar/kafka_2.8.0-0.8.1
I think you are missing the libs directory. It needs to be relative to this include https://github.com/joekiller/logstash-kafka/blob/master/lib/logstash/outputs/kafka.rb#L18
Joe On Apr 11, 2014 4:52 PM, "Ase" notifications@github.com wrote:
Installation mode: Manual Kafka jars are at: /home/abacus/kafka/logstash-1.4.0/vendor/jar/kafka_2.8.0-0.8.1
Reply to this email directly or view it on GitHubhttps://github.com/joekiller/logstash-kafka/issues/14#issuecomment-40252094 .
/home/abacus/kafka/logstash-1.4.0/vendor/jar/kafka_2.8.0-0.8.1/libs Worked for me!!
Thanks mate for such a great tool.
Glad it worked and you are welcome.
Getting following error,
NameError: cannot load Java class kafka.consumer.ConsumerIterator for_name at org/jruby/javasupport/JavaClass.java:1250 get_proxy_class at org/jruby/javasupport/JavaUtilities.java:34 java_import at file:/home/abacus/kafka/logstash-1.4.0/vendor/jar/jruby-complete-1.7.11.jar!/jruby/java/core_ext/object.rb:26 map at org/jruby/RubyArray.java:2409 java_import at file:/home/abacus/kafka/logstash-1.4.0/vendor/jar/jruby-complete-1.7.11.jar!/jruby/java/core_ext/object.rb:22 (root) at /home/abacus/kafka/logstash-1.4.0/vendor/bundle/jruby/1.9/gems/jruby-kafka-0.0.12/lib/jruby-kafka/consumer.rb:4 require at org/jruby/RubyKernel.java:1085 require at file:/home/abacus/kafka/logstash-1.4.0/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 require at file:/home/abacus/kafka/logstash-1.4.0/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53 require at /home/abacus/kafka/logstash-1.4.0/lib/logstash/JRUBY-6970.rb:27 require at /home/abacus/kafka/logstash-1.4.0/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65 (root) at /home/abacus/kafka/logstash-1.4.0/vendor/bundle/jruby/1.9/gems/jruby-kafka-0.0.12/lib/jruby-kafka.rb:1 require at org/jruby/RubyKernel.java:1085 require at file:/home/abacus/kafka/logstash-1.4.0/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:135 require at file:/home/abacus/kafka/logstash-1.4.0/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:133 require at file:/home/abacus/kafka/logstash-1.4.0/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:124 require at /home/abacus/kafka/logstash-1.4.0/lib/logstash/JRUBY-6970.rb:27 require at /home/abacus/kafka/logstash-1.4.0/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65 (root) at /home/abacus/kafka/logstash-1.4.0/vendor/bundle/jruby/1.9/gems/jruby-kafka-0.0.12/lib/jruby-kafka.rb:1 each at org/jruby/RubyArray.java:1613 (root) at /home/abacus/kafka/logstash-1.4.0/lib/logstash/outputs/kafka.rb:1 register at /home/abacus/kafka/logstash-1.4.0/lib/logstash/outputs/kafka.rb:22