Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question/Feature request: Configure topic with retention period #222

Closed
sermojohn opened this issue Sep 19, 2022 · 2 comments
Closed

Question/Feature request: Configure topic with retention period #222

sermojohn opened this issue Sep 19, 2022 · 2 comments

Comments

@sermojohn
Copy link

sermojohn commented Sep 19, 2022

Hello, thanks for providing this tool!

Is it possible to specify the retention period when creating a topic?

If not, would it make sense to extend the create and update topic command with multiple config values that will be appended when to the command? This way, kaf will not need to be aware of each configuration. I would expect that Kafka Admin API validates the configuration entries and will provide feedback without kaf needing to validate them.

Thanks, any feedback would be appreciated.

@kzhou57
Copy link

kzhou57 commented Oct 4, 2022

kaf topic set-config mytopic "retention.ms=70001"

Here you go.

@sermojohn
Copy link
Author

Thanks a lot, exactly what I need!

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

No branches or pull requests

2 participants