
offset 을 리셋하면 데이터를 처음부터 다시 읽을 수 있다. 1️⃣ consumer-group 상세보기 kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group consumer-group LOG-END-OFFSET을 보면, 마지막으로 읽은 offset을 확인 할 수 있다. 2️⃣ offset 리셋하기 - reset시에는 모든 consumer group이 비활성화 상태여야한다. 아니면 아래와 같은 에러가 난다. `Assignments can only be reset if the group consumer-group is inactive, but the current state is Stable` kafka-consumer..

아래의 그림처럼 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️⃣ #토픽 만들기 - 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
- 자바
- 현대코테
- 아파치카프카
- softeer java
- centos
- 현대오토에버
- java
- 자바코테
- 도커
- tomcat
- 오토에버코테
- 리액트
- 전자정부프레임워크
- mysql
- 코테
- softeer
- 자바스크립트
- java 코테
- Docker
- Spring
- react
- 톰캣
- 스프링
- Linux
- 쿠버네티스
- Kubernetes
- springboot
- 코딩테스트
- 현대
- javascript
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |