Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Kafka consumer consume data from particular partition

Kafka consumer consume data from particular partition

Hi All,

I have couple of quires

1. Assume, there are 4 partition and 4 consumer. Is there any way to consumer to read data from particular partition

ex: C0 wants to read P2 , C1 wants to read P4 and so on

2. I have cluster type of 10 Nodes, and kafka and Spark running in all the nodes, Kafka has 4 partition

How do I create 4 consumer in Spark and How to ensure that, all consumers are running in different nodes

Regards,
Gobi.S

Don't have an account?
Coming from Hortonworks? Activate your account here