Comments (9)
hasNext is a blocking call so it would appear locked without messages until
the consumer.timeout.ms hits (default is -1 so blocking). Did this just
happen when you upgraded? Have you changed the number of topic partitions?
Got a test to replicate the issue?
What Java are you running? Jruby version, etc. Also check Kafka 0.9.0
issues:
https://issues.apache.org/jira/browse/KAFKA/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel
Maybe this?
https://issues.apache.org/jira/plugins/servlet/mobile#issue/KAFKA-3172
On Feb 16, 2016 10:40 AM, "geojr" [email protected] wrote:
In 3.0, it appears the process gets locked when calling iterator.hasNext
and I can no longer consume messages.
—
Reply to this email directly or view it on GitHub
#46.
from jruby-kafka.
Yeah, I definitely did not give you a lot of info to go on. Sorry about that.
So I can confirm that on other kafka clients, messages are flowing so that's not the problem. When I downgrade the gem to 2.0 with the exact same configuration, I get messages and everything works as normal.
Java = OpenJDK 1.8.0_66 / Ubuntu 15.10
Kafka 0.8.20
Is 3.0 supposed to be Kafka 0.9 compatible only?
from jruby-kafka.
3.0 is a 0.9.0 build but it's supposed to be backwards compatible. If you
want it to work now, stick with the 2.X release as it is 0.8.2.2 as well.
If you can write a test that creates the problem I could take it from there.
What's your broker running for Java/Kafka? and same questions for the
producer.
On Feb 16, 2016 1:36 PM, "geojr" [email protected] wrote:
Yeah, I definitely did not give you a lot of info to go on. Sorry about
that.So I can confirm that on other kafka clients, messages are flowing so
that's not the problem. When I downgrade the gem to 2.0 with the exact same
configuration, I get messages and everything works as normal.Java = OpenJDK 1.8.0_66 / Ubuntu 15.10
Kafka 0.8.20
Is 3.0 supposed to be Kafka 0.9 compatible only?—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from jruby-kafka.
Honestly, it's the sample consumer code in your readme.md that's not
working (with the exception of me using a topic that is local to us)
A coworker advised me his consumer was working which is how I figured out
that under 2.0 things were working fine but 3.0 it was not.
The broker is running 0.8.1 but with Java 7.
Edit: Producer is running the same as the broker as it turns out.
from jruby-kafka.
I'll see if I can replicate but if you can make a fork/PR with an example test that blows up it'll help the most :). I'm guessing it has something to do with Java 7/0.8.1 and the 0.9.0 Java 8 client.
from jruby-kafka.
I tested this and got the same problem. I observed some zookeeper client
errors. Will dog deeper.
On Feb 16, 2016 11:54 AM, "geojr" [email protected] wrote:
Honestly, it's the sample consumer code in your readme.md that's not
working (with the exception of me using a topic that is local to us)A coworker advised me his consumer was working which is how I figured out
that under 2.0 things were working fine but 3.0 it was not.The broker is running 0.8.1 but with Java 7.
On Tue, Feb 16, 2016 at 1:49 PM, Joseph Lawson [email protected]
wrote:3.0 is a 0.9.0 build but it's supposed to be backwards compatible. If you
want it to work now, stick with the 2.X release as it is 0.8.2.2 as well.If you can write a test that creates the problem I could take it from
there.What's your broker running for Java/Kafka? and same questions for the
producer.
On Feb 16, 2016 1:36 PM, "geojr" [email protected] wrote:Yeah, I definitely did not give you a lot of info to go on. Sorry about
that.So I can confirm that on other kafka clients, messages are flowing so
that's not the problem. When I downgrade the gem to 2.0 with the exact
same
configuration, I get messages and everything works as normal.Java = OpenJDK 1.8.0_66 / Ubuntu 15.10
Kafka 0.8.20
Is 3.0 supposed to be Kafka 0.9 compatible only?—
Reply to this email directly or view it on GitHub
<https://github.com/joekiller/jruby-kafka/issues/46#issuecomment-184818441>
.
—
Reply to this email directly or view it on GitHub
<
https://github.com/joekiller/jruby-kafka/issues/46#issuecomment-184850259>
.J.R. Smith
Software DeveloperMain 972.546.3878
https://www-staging.geoforce.net/uploads/downloads/esignature.html
Fax 972.546.3871
https://www-staging.geoforce.net/uploads/downloads/esignature.html
Toll Free 888.574.3878
https://www-staging.geoforce.net/uploads/downloads/esignature.html
Geoforce.com http://www.geoforce.com/*Geoforce *750 Canyon Dr. Suite 140
Coppell, Texas 75019https://www.facebook.com/geoforceinc https://twitter.com/geoforce
https://www.linkedin.com/company/geoforce-inc
https://instagram.com/geoforce_tracking/
https://oilpro.com/company/152135/geoforceCONFIDENTIAL - If you are not the intended recipient, please delete this
message without disclosing it.—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from jruby-kafka.
So I was confused. The 0.9.X consumer and producers cannot talk to 0.8 brokers. A 0.9.X broker can be configured to talk 0.8 bit not vice versa. So use the 2.X stuff.
from jruby-kafka.
Ahh I was not aware of that either. I was under the impression that it was
all backwards compatible. Good to know. Thank you so much for your help and
response time. 2.x has been working well in my tests.
On Feb 18, 2016 9:50 PM, "Joseph Lawson" [email protected] wrote:
So I was confused. The 0.9.X consumer and producers cannot talk to 0.8
brokers. A 0.9.X broker can be configured to talk 0.8 bit not vice versa.
So use the 2.X stuff.—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from jruby-kafka.
Good deal. I just lol'd at most of my responses. They all seem to be victim
of autocorrect.
On Feb 18, 2016 7:59 PM, "geojr" [email protected] wrote:
Ahh I was not aware of that either. I was under the impression that it was
all backwards compatible. Good to know. Thank you so much for your help and
response time. 2.x has been working well in my tests.
On Feb 18, 2016 9:50 PM, "Joseph Lawson" [email protected] wrote:So I was confused. The 0.9.X consumer and producers cannot talk to 0.8
brokers. A 0.9.X broker can be configured to talk 0.8 bit not vice versa.
So use the 2.X stuff.—
Reply to this email directly or view it on GitHub
<
https://github.com/joekiller/jruby-kafka/issues/46#issuecomment-186040140>
.—
Reply to this email directly or view it on GitHub
#46 (comment)
.
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
- Namespace conflicts HOT 3
- Use Kafka Clients Jar
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.kafka.clients.producer.ProducerConfig HOT 6
- 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.