Kafka Creating Topic Error: replication factor larger than available brokers
2017-12-11 13:18
543 查看
1. Problem
Ubuntu 16, JDK 8. Kafka 1.0
使用单独的zookeeper. Started single-node zookeeper, zkCli works perfectly.
Created directory /tmp/kafka-logs
Started kafka with default configuration, no error pops. Not sure if the kafka is started.
Try to create a topic, error: replication factor larger than available brokers
2. Analysis and Solution
logging in to your Zookeepr console : bin/zkCli.sh -server localhost:2181 Run [zk: localhost:2181(CONNECTED) 2] ls /brokers/ids on the console. It must be not be showing up any brokers.
kafka没有启动成功. 因为启动的时候用了-daemon选项所以没看到报错.
kill掉zookeeper, 换用kafka自带zookeeper和default configuration, 启动zk成功
启动kafka终于见到报错了,原来是/tmp/kafka-logs没有写入权限, 通过chmod改一下后kafka启动成功,创建topic成功.
Ubuntu 16, JDK 8. Kafka 1.0
使用单独的zookeeper. Started single-node zookeeper, zkCli works perfectly.
Created directory /tmp/kafka-logs
Started kafka with default configuration, no error pops. Not sure if the kafka is started.
Try to create a topic, error: replication factor larger than available brokers
2. Analysis and Solution
logging in to your Zookeepr console : bin/zkCli.sh -server localhost:2181 Run [zk: localhost:2181(CONNECTED) 2] ls /brokers/ids on the console. It must be not be showing up any brokers.
kafka没有启动成功. 因为启动的时候用了-daemon选项所以没看到报错.
kill掉zookeeper, 换用kafka自带zookeeper和default configuration, 启动zk成功
启动kafka终于见到报错了,原来是/tmp/kafka-logs没有写入权限, 通过chmod改一下后kafka启动成功,创建topic成功.
相关文章推荐
- ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: replication factor: 3 larger
- Error while executing topic command : replication factor: 1 larger than available brokers: 0
- Kafka错误“Network is unreachable”和“larger than available brokers”
- error[No partition metadata for topic test-1 due to kafka.common.LeaderNotAvailableException]
- Kafka中操作topic时 Error:Failed to parse the broker info from zookeeper
- Kafka:ZK+Kafka+Spark Streaming集群环境搭建(二十六)Structured Streaming:WARN clients.NetworkClient: Error while fetching metadata with correlation id 1 : {my-topic=LEADER_NOT_AVAILABLE}
- Kafka之——replication factor: 1 larger than available brokers: 0 问题解决方案
- replication factor: 3 larger than available brokers: 1
- Error writing file: A file cannot be larger than the value set by ulimit
- 错误:Error creating bean with name ‘org.springframework.validation.beanvalidation.LocalValidatorFactor
- ERROR Error when sending message to topic test_topic with key: null, value: 3 bytes……:部署Kafka时遇到两个问题
- kafka创建topic报错:KeeperException$NoNodeException: KeeperErrorCode = NoNode for /brokers/ids
- 出现“entry index is larger than available symbols” <index ,total symbols> 的研究
- xtrabackup: error: last checkpoint LSN (3409281307) is larger than last copied LSN (3409274368)
- xtrabackup: error: last checkpoint LSN (3409281307) is larger than last copied LSN (3409274368). #2
- kafka调试中遇到Connection to node -1 could not be established. Broker may not be available.
- No partition metadata for topic test due to kafka.common.LeaderNotAvailableException
- APKTOOL编译出现“entry index is larger than available symbols” <index ,total symbols> 的研究
- kafka producer生产数据到kafka异常:Got error produce response with correlation id 16 on topic-partition...Error: NETWORK_EXCEPTION
- Error when sending message to topic test with key: null, value: 2 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)