Re: Proper use of ConsumerConnector
In general, you should use the consumer connector - unless you have a good
reason to load balance and manage offsets manually (which is taken care of
in the consumer connector).
- Does the ConsumerConnector manage connections to multiple brokers,
You can specify how many streams you want - if there are more partitions
than threads, then a given thread can consume from multiple partitions. If
there are more threads than available partitions, there will be idle
The consumer connector uses SimpleConsumers for each broker that it
connects to. These consumers fetch from each broker and insert chunks into
blocking queues which the consumer iterators then dequeue.