전체 글 (704) 썸네일형 리스트형 topic 생성 시 유의 할 점 [1. partition 과 replication-factor] paritition 개수는 적어도 broker 개수 만큼 있어야 한다. => partition 및 replication-factor 가 모두 1 인 경우, => Leader 장애 발생 시, produce 및 consume 모두 동작하지 않는다.. partition 개수를 하나만 할 경우, replication-fator 는 broker 개수 만큼 설정해야 한다. => replication-factor 는 broker 개수를 넘길 수 없다. => partition 개수는 broker 개수를 넘길 수 있다. => 다른 broker 가 Leader 가 되어, produce 및 consume 이 가능해 진다. partition 개수 replicat.. rdkafka 빌드 [1. 개요] the Apache Kafka C/C++ client library librdkafka 는 C/C++ 환경에서 kafka 클라이언트 구현을 위한 라이브러리 로컬 환경에서 라이브러리 빌드 방법을 정리한다. [2. 개발환경] OS : Windows Compiler : mingw64 리눅스도 비슷한 방식으로 진행한다. [3. 라이브러리 빌드] wget https://github.com/confluentinc/librdkafka/archive/refs/tags/v2.1.1.zip # 혹은 git clone https://github.com/confluentinc/librdkafka 압축 해제 cd librdkafka-2.1.1 mkdir build cd build cmake .. -G "MinGW.. CMake command 정리 2 add_subdirectory (source_dir, [binary_dir], ...) => CMakeLists.txt 가 있는 디렉터리 경로를 source_dir 에 명시하도록 한다. => fd 이전 1 ··· 37 38 39 40 41 42 43 ··· 235 다음