Comments (6)
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.
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.
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.
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.
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.
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)
- Consumer parallelism? HOT 7
- Where can I find group.rb? HOT 1
- Latest gem release (for jruby) doesn't have new, simpler consumer. HOT 2
- Create CI build
- Are there any plans to upgrade to the latest Kafka API? I would like mutual TLS support HOT 6
- jruby build dependencies
- Implement KafkaConsumer
- Add CI for v1_x HOT 1
- add LZ4 codec for producer
- 3.0 - Cannot get past iterator.hasNext HOT 9
- Namespace conflicts HOT 3
- Use Kafka Clients Jar
- Port CI release to v1_x branch. HOT 1
- log4j warnings HOT 2
- Consumer stops working HOT 6
- ArgumentError: Parameter :metadata_broker_list is required.
- avro support
- Use kafka-client 2.0.0 jars HOT 2
- jruby-kafka_jars.rb missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jruby-kafka.