Created 02-05-2024 05:13 AM
Hello experts,
We are facing an issue, where preprod Nifi server is able to read a kafka topic correctly.
It is able to read all 3 partitions data.
At the same time UAT Nifi server is connecting to same topic with different consumer group id and which is reading only the partition 0 & partition 1 but not partition 2.
Screen shot from Lenses abt the same consumer group which is facing issue
Any idea what could be the possible reasons?
Thanks
Mahendra
Created 02-05-2024 06:38 AM
@hegdemahendra
Curious about the differences between your prod and uat environments here.
1. Same number of nodes in each environments NiFi cluster?
2. Same exact configurations on the ConsumeKafka processor (except consumer group ID) ?
3. Screenshot of scheduling tab for consumeKafka processor?
4. Versions of NiFi (Apache, CFM, HDF) used in both environments?
5. Any observed rebalancing or consumer group related exceptions in the logs?
Having more consumers in a consumer group than the number of partitions can lead to constant rebalance occurring. The number of consumers in the consumer group is calculated by multiplying the number of nodes in your NiFi cluster by the number of concurrent tasks configured on the ConsumeKafka processor. So if you have a 3 node cluster, you should have only 1 concurrent task, so number of consumers is equal to or less the the number of partitions.
Thanks,
Matt
Created 02-05-2024 06:38 AM
@hegdemahendra
Curious about the differences between your prod and uat environments here.
1. Same number of nodes in each environments NiFi cluster?
2. Same exact configurations on the ConsumeKafka processor (except consumer group ID) ?
3. Screenshot of scheduling tab for consumeKafka processor?
4. Versions of NiFi (Apache, CFM, HDF) used in both environments?
5. Any observed rebalancing or consumer group related exceptions in the logs?
Having more consumers in a consumer group than the number of partitions can lead to constant rebalance occurring. The number of consumers in the consumer group is calculated by multiplying the number of nodes in your NiFi cluster by the number of concurrent tasks configured on the ConsumeKafka processor. So if you have a 3 node cluster, you should have only 1 concurrent task, so number of consumers is equal to or less the the number of partitions.
Thanks,
Matt
Created 02-05-2024 07:13 AM
Thanks for the quick reply @MattWho .
We found the issue.
It was due to firewall setup for the partition-2 on broker side.
When they fixed it started working