kafka 錯誤: larger than available brokers
kafka 的這個錯誤 很多地方會觸發 :
CDH 繼續測試中. 今天遇到了這個比較坑.
Error while executing topic command : replication factor: 2 larger
kafka-topics --create --topic event_topic --zookeeper x.x.x.x --replication-factor 2 --partitions 3 --config retention.ms=600000
然後就報了這麼一大堆錯誤:
Error while executing topic command : replication factor: 2 larger than available brokers: 0
20/04/16 11:01:15 ERROR admin.TopicCommand$: org.apache.kafka.common.errors.InvalidReplicationFactorException: replication factor: 2 larger than available brokers: 0
百思不得解 .
然後去看了 config .
發現 config 的 zookeeper.connect 寫的不是ip 是主機名. 於是在命令列上改為主機名.
竟然ok 了.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/133735/viewspace-2686462/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- kafka報錯:InvalidReceiveException: Invalid receive (size = 1195725856 larger than 104857600)KafkaException
- MySQL報錯:Packets larger than max_allowed_packet are not allMySql
- Poster stopped: message is larger than configured max size
- Spring:錯誤No bean named 'xxxxxxx' availableSpringBeanAI
- spring中No bean named xxx available錯誤SpringBeanAI
- 【ERROR】su user報'This account is currently not available'錯誤 for linuxErrorAILinux
- 使用@Service註解出現No bean named 'xxxx' available]錯誤BeanAI
- [mac pip錯誤]Can't connect to HTTPS URL because the SSL module is not availableMacHTTPAI
- "Got a packet bigger than 'max_allowed_packet' bytes"錯誤解決辦法Go
- No Bean named 'Xxx' available 異常報錯BeanAI
- Maven專案報錯:No bean named 'xxxxxx' availableMavenBeanAI
- idea maven搭建spring報錯:No bean named 'xxx' availableIdeaMavenSpringBeanAI
- Linux yum安裝httpd報錯 No package httpd available ?LinuxhttpdPackageAI
- 用putty連線AWS,報錯“No supported authentication methods available"AI
- ADS報錯:Sorry, but the license for the following library is not available: "System Model Library"AI
- Kafka聯結器深度解讀之錯誤處理和死信佇列Kafka佇列
- 【常見錯誤】--Nltk使用錯誤
- iis7.5錯誤 配置錯誤
- wsl 中 docker-compose 搭建 kafka 叢集出現的外部訪問錯誤DockerKafka
- kafka報錯解決 kafka.errors.NoBrokersAvailable: NoBrokersAvailableKafkaErrorAI
- nginx 錯誤除錯Nginx除錯
- PbootCMS錯誤提示:執行SQL發生錯誤!錯誤:no such column: def1bootSQL
- Kafka - 消費錯誤問題,多臺機器上面無法消費資料Kafka
- k8s kubectl top pod報錯error Metrics API not availableK8SErrorAPIAI
- Kafka除錯入門(一)Kafka除錯
- 前端錯誤前端
- JavaFx 錯誤Java
- ORACLE 錯誤Oracle
- Promise基礎(消化錯誤和丟擲錯誤)Promise
- 記錄一次根據錯誤資訊無法定位錯誤的錯誤
- No instances available for XXXAI
- 記一次idea構建springmvc報錯:No bean named 'cacheManager' availableIdeaSpringMVCBeanAI
- C中的匯流排錯誤和段錯誤
- Request 驗證錯誤沒有返回錯誤資訊?
- 錯誤和異常 (一):錯誤基礎知識
- DNS: More than just namesDNS
- npm錯誤集合NPM
- app:processDebugManifest 錯誤APP