
아래의 그림처럼 consumer-group이라는 #컨슈머그룹을 만들고 여러 컨슈머를 생성하는 방법을 알아보자. 1️⃣ topic 생성하기 kafka-topics.sh --bootstrap-server localhost:9092 --topic test_topic --create --partitions 5 2️⃣ 하나의 consumer로 시작하기 - #옵션 : --group kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test_topic --group consumer-group 3️⃣ 하나의 producer 시작 # kafka-console-producer.sh --bootstrap-server localhost:9092 --pro..

1️⃣ topic 생성 kafka-topics.sh --bootstrap-server localhost:9092 --topic test_topic --create --partitions 3 2️⃣ #producing / 데이터 쓰기 1) key없이 데이터 쓰기 - 키를 입력하지 않은 경우 key는 Null이다 kafka-console-producer.sh --bootstrap-server localhost:9092 --topic test_topic 위 명령어를 입력하면, 데이터를 쓸 수 있게 터미널이 변경 된다. 쓰고 싶은 데이터를 입력 후 프로듀서를 빠지나오고 싶으면 ctrl+C를 눌러주면 된다. 2) key 데이터 쓰기 - : 로 key와 값을 구분한다. - 동일한 키는 동일한 파티션에 데이터가 쓰..

1️⃣ #토픽 만들기 - first_topic 이라는 이름을 가진 토픽 만들기 kafka-topics.sh --bootstrap-server localhost:9092 --topic first_topic --create 2️⃣ topic 리스트 확인하기 kafka-topics.sh --bootstrap-server localhost:9092 --list 3️⃣ #partition 을 가진 토픽 만들기 - 3개의 파티션을 가진 second_topic 이라는 이름을 가진 토픽 만들기 kafka-topics.sh --bootstrap-server localhost:9092 --topic second_topic --create --partitions 3 4️⃣ #복제계수 - 복제계수 : 재해 복구의 목적과 고가..
- Total
- Today
- Yesterday
- 오토에버코테
- Kubernetes
- 쿠버네티스
- java
- softeer java
- Spring
- 리액트
- 현대오토에버
- 코테
- Linux
- 현대
- java 코테
- 자바스크립트
- 도커
- tomcat
- 아파치카프카
- javascript
- mysql
- 전자정부프레임워크
- 스프링
- react
- 자바
- 코딩테스트
- springboot
- Docker
- 톰캣
- centos
- 현대코테
- 자바코테
- softeer
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |