Comments (5)
Do you have multiple Kafka brokers/partitions? Could be you're just consuming messages from a single partition.
from poseidon.
@damien Thanks for the response.
I did not set a partitioner for the producer so it seems that it is publishing messages to more than one partition. Can I have a consumer to consume all messages from a topic regardless of the partition? Or at least a way to know how many partitions are there for a topic.
Thanks
from poseidon.
Unfortunately, consuming messages from Kafka is quite a bit more complicated than publishing messages to Kafka. I'm in the process of figuring out a similar problem myself and the best ruby based consumer library I've been able to find for the problem is poseidon_cluster.
Setting that up and pointing it at your brokers should ensure you get all the messages you're looking for; otherwise you probably really are seeing a bug in poseidon itself.
from poseidon.
I did a workaround which I think is wrong in general. I set the partitioner so that all messages are published to one partition. Then I create a partition consumer for that partition.
from poseidon.
That does seem to verify that you were only listening to one of multiple partitions. Definitely check out poseidon_cluster; your workaround may fix your problem but you'll be giving up a lot of Kafka's guarantees around persistence/availability if you're running off of a single partition.
from poseidon.
Related Issues (20)
- Seeking a consumer by offset
- Does not handle a single down broker HOT 5
- Kafka 0.9 support HOT 1
- Message#value seems to be escaped HOT 5
- Use Zookeeper to discover brokers? HOT 3
- Will poseidon be maintained continuously in the coming future? HOT 1
- When I create a new pull request, the checks can not pass while I donot change anything.
- Trouble producing if too many brokers are down HOT 1
- Will poseidon implement async_producer in thre coming future? HOT 1
- Commiting and fetching consumer offsets in Kafka HOT 9
- send_messages should return false rather than raising an exception HOT 2
- Write to Kafka when loosing a Broker Connection
- Sporadic error fetching data from consumer caused by checksum and decoding issue
- Consumer does not appear to fetch all messages from a topic? HOT 1
- Poseidon::Connection#read_response hides Timeout errors HOT 2
- Obtaining topic metadata HOT 1
- Is there no support for consumer groups? HOT 2
- Logging? HOT 1
- Sporadic NoMethodErrors when calling Poseidon::PartitionConsumer.consumer_for_partition
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 poseidon.