Search
Duplicate

카프카 로컬 환경설정

저자
점수
완료일
상태
시작 전
유형
1.
카프카 설치 위치로 이동한다.
a.
/Users/coby/Downloads/kafka_2.12-2.5.0
2.
주키퍼 실행 명령어
3.
카프카 정상 실행 명령어
4.
카프카 정상 실행 됬는지 확인하는 명령어
bin/kafka-broker-api-versions.sh --bootstrap-server {aws 인스턴스 IP}:9092
Topic 설치명령어
bin/kafka-topics.sh --create --bootstrap-server my-kafka:9092 --topic hello.kakfa(토픽명)
Topic 확인 명령어
bin/kafka-topics.sh --bootstrap-server my-kafka:9092 --topic frdln-detection-log --describe
Topic을 만들면서 파티션 갯수와 추가 옵션 더 주기
bin/kafka-topics.sh --create --bootstrap-server my-kafka:9092 --partitions 10 --replication-factor 1 --topic hello.kafka2 --config retention.ms=172800000
Topic의 파티션 갯수를 늘리는법
bin/kafka-topics.sh --bootstrap-server my-kafka:9092 --topic hello.kakfa(토픽명) --alter --partitions 10