Kafka scales via partitions, not via replication. Replication guarantees fault-tolerance. Thus, it's not possible atm, to consume from follower partitions -- also note, even if different consumer would read from follower partitions, each of them would read the same data. I assume, you want different consumers (with a consumer group) to read different data. For this, your topic should have multiple partitions.
-Matthias On 9/30/18 9:08 AM, M. Manna wrote: > Have you set the bootstrap.servers to your local broker and check? > > Also, don’t forget that for any topic there’s a leader and follower - so > asking the follower to do a leader’s job isn’t probably the correct > intention. > > > > On Sun, 30 Sep 2018 at 17:06, Aung Myo Htut <[email protected]> > wrote: > >> Dear sir >> >> I'm doing the project of streaming the image sequence using the Apache >> Kafka. >> Now I can stream with the single broker. To have the scalability, I want to >> use 3 Kafka Brokers with 3 replication and Brokers will be installed at >> different locations. So I want consumers to consume from the local broker. >> But when I check consumer consume only from the leader partition of the >> topic. So how can local consumer pull the messages from the follower >> partition? >> >> Best regards, >> Aung Myo Htut >> >
signature.asc
Description: OpenPGP digital signature
