./kafka-server-start.sh ../../config/server.properties
./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 2 --topic {topicName}
./kafka-topcis.sh --list --zookeeper localhost:2181
./kafka-consumer-groups.sh --list --bootstrap-server {IP}:9092
./kafka-console-consumer.sh --bootstrap-server {IP}:9092 --topic {topicName} --from-beginning
./kafka-consumer-groups.sh --bootstrap-server {IP}:9092 --describe --group abc
./kafka-consumer-groups.sh \
--bootstrap-server {IP}:9092 \
--group {group}
--topic {topic} \
--reset-offsets --to-latest --execute
결과
--to-offset n
--to-earlist
--shift-by n
등으로 offset 설정 가능
./kafka-consumer-groups.sh \
--bootstrap-server 182.193.17.35:9092 \
--group {group} \
--reset-offsets \
--topic {topic} \
--to-datetime 2020-12-02T00:00:00.000+09:00