
아래의 그림처럼 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와 값을 구분한다. - 동일한 키는 동일한 파티션에 데이터가 쓰..
- Total
- Today
- Yesterday
- tomcat
- 현대오토에버
- Kubernetes
- 자바스크립트
- Linux
- 오토에버코테
- Spring
- springboot
- 리액트
- 톰캣
- 자바코테
- 코딩테스트
- java 코테
- java
- 스프링
- javascript
- react
- softeer java
- centos
- 현대코테
- 아파치카프카
- 전자정부프레임워크
- 도커
- 자바
- mysql
- softeer
- 쿠버네티스
- 현대
- 코테
- Docker
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |