Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- deepseek
- 달리기
- 티지아이포럼
- 한국걱정
- 트럼프2.0시대
- 잘쉬어야지
- Zone2
- 플라스틱은 어떻게 브랜드의 무기가 되는가
- 이코노미스트한국구독센터
- 여행
- schema-registry
- sparksql
- 마법의연금굴리기
- apollo-sandbox
- 중사랑
- 송고버섯피자
- 런데이애플워치
- neovim
- apollo-server-v3
- kafka-connect
- parquet
- 루스틱
- 강릉여행
- 가람집옹심이
- 일권하는사회
- 런데이
- 마연굴
- 오운완
- 저동하녹
- 여니브레드
Archives
- Today
- Total
해뜨기전에자자
kafka upgrade issue from 0.10.1.1 to 0.11.0.2: offsets.topic.replication.factor 본문
개발/kafka
kafka upgrade issue from 0.10.1.1 to 0.11.0.2: offsets.topic.replication.factor
조앙'ㅁ' 2018. 3. 20. 23:17kafka version 0.10.1.1 to 0.11.0.2 upgrade
zk는 consume이 잘 되는데, kf 기반 consume은 잘 안 됨..
kafka consume is not working while zk consume works well.
현상:
zookeeper working
bin/kafka-console-consumer.sh --zookeeper $(hostname -f):2181 --topic test
kafka coordinator not working
bin/kafka-console-consumer.sh --bootstrap-server $(hostname -f):9092 --topic test
logs/server.log
[2018-03-20 21:37:18,827] ERROR [KafkaApi-15176] Number of alive brokers '1' does not meet the required replication factor '3' for the offsets topic (configured via 'offsets.topic.replication.factor'). This error can be ignored if the cluster is starting up and not all brokers are up yet. (kafka.server.KafkaApis)
solved.
0.10버전까지 min(# of brokers, offsets.topic.replication.factor) 값을 취해서 썼는데, config 값 그대로 쓰고 에러를 내도록 변경되었다.
The config "offsets.topic.replication.factor(default 3)" was introduced from v0.9. And this config set the value of min(# of brokers, offsets.topic.replication.factor) until v0.10.1.
And it changes not to take min and just take config as set. check the notable changes in 0.11.0.0.
* The offsets.topic.replication.factor broker config is now enforced upon auto topic creation. Internal auto topic creation will fail with a GROUP_COORDINATOR_NOT_AVAILABLE error until the cluster size meets this replication factor requirement.
just append as followed, and restart. and then read from kafka works well!
offsets.topic.replication.factor=1
default kafka config 설정에는 위 설정이 포함되어 있었다..
아래 링크를 좀 더 꼼꼼히 봐야겠다.
+ 눈여겨서 볼만한 changes..
unclean.leader.election.enable 가 default로 true에서 false로 바뀐다.
true면 data loss가 생길 수 있지만 availability 가 증가하고
false면 data loss가 없는 대신, no live in-sync replicas면 에러가 나면서 partition을 쓸 수없는 상태가 된다. 즉, data에 대한 durability가 증가한다.
If unclean.leader.election.enable is set to true (enabled), an out-of-sync replica will be elected as leader when there is no live in-sync replica (ISR). This preserves the availability of the partition, but there is a chance of data loss.
If unclean.leader.election.enable is set to false and there are no live in-sync replicas, Kafka returns an error and the partition will be unavailable.
ref: 바닐라 버전은 아니지만 참조했다.
'개발 > kafka' 카테고리의 다른 글
LINE에서 Kafka를 사용하는 방법 요약 (0) | 2020.04.13 |
---|