public class TopicPartitionConfigMapGenerator
extends Object
This tool is for generating TopicPartition List for restoring.
Logic of generating restore topic partition list config:
1. Not internal topics
2. Not compact topics (clean.policy compact)
3. If given from-timestamp
set from-timestamp as the given input
If not given fromTimestamp
use retention.ms of the topic as its from-timestamp
SAMPLE USAGE:
$> bin/kafka-run-class.sh \
kafka.restore.configmap.TopicPartitionConfigMapGenerator \
--bootstrap-server
--output-file \
--from-timestamp
timestamp can either as unix epoch or format as 'yyyy-MM-dd HH:mm:ss'
or
$> bin/kafka-run-class.sh kafka.restore.configmap.TopicPartitionConfigMapGenerator