Support Questions

Find answers, ask questions, and share your expertise

Make Kafka verifiable consumer consume from 1 partition

avatar
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

avatar
Expert Contributor

@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

avatar
Expert Contributor

@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!