Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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!