Kendall Weihe
Kendall Weihe

Reputation: 193

How to save a kafka topic at shutdown

I'm configuring my first kafka network. I can't seem to find any support on saving a configured topic. I know I can configure a topic from the quickstart guide here, but how do I save it? I thought I could add the topic info to a .properties file inside the config dir, but I don't see any support for that.

If I shutdown my machine, my topic is deleted. How do I save the configuration?

Upvotes: 0

Views: 896

Answers (1)

vahid
vahid

Reputation: 1218

Could the topic be deleted because you are using the default broker config? With the default config, Kafka logs are stored under /tmp folder. This folder gets wiped out during a machine reboot. You could change the broker config and pick another location for Kafka logs.

Upvotes: 2

Related Questions