Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Question: Using the tool where topics may have periods in them #141

Open
deckarep opened this issue Sep 22, 2017 · 1 comment
Open

Question: Using the tool where topics may have periods in them #141

deckarep opened this issue Sep 22, 2017 · 1 comment

Comments

@deckarep
Copy link

We have a use case where some of our topics are defined with periods in them. Potentially not a good practice but that is the case none the less.

For running commands such as the following:

kafka-consumer-manager --cluster-type test --cluster-name my_cluster offset_set my_group topic1.0.38531

This poses as a problem due to the way the syntax is setup for the command line usage.

Can you recommend a work-around potentially for this or would you be open to a patch that allows topics with periods to be used somehow?

Thanks for the help in advance!

@deckarep

@ecanzonieri
Copy link
Contributor

I'm not sure about the problem here. We do rsplit looking for the first "." in the topic name starting from the right that delimits the topic name. In your case if the topic name is "topic1.0.38531" to set offsets for partition 0 you should be able to do something like:

kafka-consumer-manager --cluster-type test --cluster-name my_cluster offset_set my_group topic1.0.38531.0=12345

Is this not working?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants