$ bin/kafka-server-start.sh -daemon config/server.properties $ bin/kafka-server-start.sh -daemon config/server2.properties $ bin/kafka-server-start.sh -daemon config/server3.properties # 잘 작동하는 지 확인하기 $ lsof -i:9092 $ lsof -i:19092 $ lsof -i:29092
# 전체 토픽 조회 $ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --list # 조회된 모든 토픽 삭제하기 $ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --delete --topic <토픽명>
$ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --create \ --topic user.signed-up \ --partitions 3 \ --replication-factor 3 # 토픽 세부 정보 조회 (잘 생성됐는 지 확인하기) $ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --describe \ --topic user.signed-up
$ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --create \ --topic user.signed-up.dlt \ --partitions 1 \ --replication-factor 3 # 토픽 세부 정보 조회 (잘 생성됐는 지 확인하기) $ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --describe \ --topic user.signed-up.dlt