Coder Social home page Coder Social logo

Comments (6)

joekiller avatar joekiller commented on July 19, 2024

Are you building the gem yourself? Make sure you run rake install_jars

https://github.com/joekiller/jruby-kafka/blob/master/DEVELOPMENT.md

Hi Joe,

I'm running jruby 1.7.25 and using the 3.6.0 branch to be able to target
kafka 0.9 brokers. When constructing a Producer like:

KAFKA_PRODUCER_OPTIONS = {
:bootstrap_servers => '127.0.0.1:9092',
:key_serializer => 'org.apache.kafka.common.serialization.StringSerializer',
:value_serializer =>
'org.apache.kafka.common.serialization.StringSerializer',
}

producer = Kafka::KafkaProducer.new(KAFKA_PRODUCER_OPTIONS)

it fails with:
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.kafka.clients.producer.ProducerConfig
org.apache.kafka.clients.producer.KafkaProducer.(org/apache/kafka/clients/producer/KafkaProducer.java:181)
...

From what I can see this has to do with dynamic class loading issues in
kafka 0.9.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#53, or mute the thread
https://github.com/notifications/unsubscribe/AA-bx2D0sqSb75u848GhDQbN5GbQ0JAmks5qVO9PgaJpZM4JLcn7
.

from jruby-kafka.

sziep avatar sziep commented on July 19, 2024

No, just wanted to give you a heads up that the latest kafka 0.9 (3.6.0) branch is not usable.
Going back to 2.2.2 fixed the issue for me. Surprisingly I can send messages to 0.9 brokers.

from jruby-kafka.

joekiller avatar joekiller commented on July 19, 2024

Are you using the 3.6.0 gem or branch?

-Joe
Sent via mobile.
On Jul 13, 2016 11:31 AM, "Stephan Ziep" [email protected] wrote:

No, just wanted to give you a heads up that the latest kafka 0.9 (3.6.0)
branch is not usable.
Going back to 2.2.2 fixed the issue for me. Surprisingly I can send
messages to 0.9 brokers.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#53 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AA-bx3Cs2eJ8hNm7sRQflbG1CjlFADQAks5qVQTOgaJpZM4JLcn7
.

from jruby-kafka.

joekiller avatar joekiller commented on July 19, 2024

Are your brokers in 0.8 compatibility mode? http://kafka.apache.org/090/documentation.html#upgrade

Upgraded brokers and clients are not compatible otherwise.

v3.6.0 passed all tests using Kafka 0.9.0.1 https://travis-ci.org/joekiller/jruby-kafka/builds/117786218

from jruby-kafka.

sziep avatar sziep commented on July 19, 2024

I was using the gems, not the branches directly.
My broker is not in compatibility mode, i just checked. Its 0.9 without special settings. Curious...

My setup has two docker containers. One is producing via a Sinatra App running on Jubillee / Vert.x, the other one is Kafka receiving messages.

from jruby-kafka.

joekiller avatar joekiller commented on July 19, 2024

Okay any steps.to replicate would be appreciated.
On Jul 14, 2016 2:36 AM, "Stephan Ziep" [email protected] wrote:

I was using the gems, not the branches directly.
My broker is not in compatibility mode, i just checked. Its 0.9 without
special settings. Curious...

My setup has two docker containers. One is producing via a Sinatra App
running on Jubillee / Vert.x, the other one is Kafka receiving messages.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#53 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AA-bxz9SoqxShS3ljWZK1VWtY1laxdVRks5qVdjpgaJpZM4JLcn7
.

from jruby-kafka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.