인프런 커뮤니티 질문&답변
작성자 없음
작성자 정보가 삭제된 글입니다.
카프카 설정이 맞는건지 궁금합니다.
작성
·
1K
0
엄밀하게는 카프카 이슈지만 카탈로그 서비스를 구동하면서 발견하게 된 문제라 이 쪽에 적습니다.
1. 카프카 컨테이너 생성 결과
auto.create.topics.enable = trueauto.leader.rebalance.enable = truebackground.threads = 10broker.heartbeat.interval.ms = 2000broker.id = -1broker.id.generation.enable = true...creating topics: example-order-topic:1:1Created topic example-order-topic.
말씀 주신 이미지에서 `KAFKA_CREATE_TOPICS`에서 예제에서 사용하는 토픽을 미리 만들고자 "example-order-topic:1:1" 값을 추가함 (원래는 만들 필요도 없이 auto.create.topics.enable = true로 설정이 되어있으면 자동 생성되는 것으로 알고 있으나, 생성되지 않는 듯 하여 추가했고 로그로 확인)
2. 카탈로그 서비스 컨테이너 실행 후 카프카 컨테이너 로그
[2022-02-02 14:16:37,395] INFO [Admin Manager on Broker 1001]: Error processing create topic request CreatableTopic(name='example-order-topic', numPartitions=1, replicationFactor=1, assignments=[], configs=[]) (kafka.server.ZkAdminManager)
2022-02-02 14:18:09.506 WARN 1 --- [ntainer#0-0-C-1] org.apache.kafka.clients.NetworkClient : [Consumer clientId=consumer-consumerGroupId-1, groupId=consumerGroupId] Error while fetching metadata with correlation id 958 : {example-order-topic=INVALID_REPLICATION_FACTOR}





