Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Make Kafka verifiable consumer consume from 1 partition

Super Collaborator

Hi,

I wonder if there is a way to have the Kafka verifiable consumer only consume from 1 partition.

The standard console consumer has a parameter:

--partition 1

now to support that, but the Verifiable consumer doesn't.

Can you achieve the same it by playing with the consumer config options?

1 ACCEPTED SOLUTION

Rising Star

@Jasper

Hi,

As far as I know verifiable consumer is designed for system testing and it emits consumer events as JSON objects. Also, --group-id is a mandatory option and even if you check the code it uses subscribe method to subscribe to partitions so I don't think we can mention specific partition.

Thank you!

View solution in original post

1 REPLY 1

Rising Star

@Jasper

Hi,

As far as I know verifiable consumer is designed for system testing and it emits consumer events as JSON objects. Also, --group-id is a mandatory option and even if you check the code it uses subscribe method to subscribe to partitions so I don't think we can mention specific partition.

Thank you!

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.