Error:
InvalidReplicationFactorException: Replication factor:
1 larger than available brokers
The reason is that the configuration in kafka’s zk doesn’t match the creation parameters
Solution:
Open server.properties
vim /opt/module/kafka/config/server.properties
View Configuration
zookeeper.connect=hadoop102:2181,hadoop103:2181,hadoop104:2181/kafka
Create a topic at this time
bin/kafka-topics.sh –zookeeper hadoop102:2181/kafka
–create –replication-factor 3 –partitions 1 –topic first
Here the zookeeper parameter value must be the same as the configured one
Read More:
- Kafka executes the script to create topic error: error org apache. kafka. common. errors. InvalidReplicationFactorException: Replicati
- [Solved] Kafka Error: kafka.common.InconsistentClusterIdException…
- [Solved] kafka Startup Error: ERROR Shutdown broker because all log dirs in /…/kafka/logs have failed (kafka.log.LogManager)
- [Solved] Win 10 Kafka error: failed to construct Kafka consumer
- Kafka error: ERROR There was an error in one of the threads during logs loading: java.lang.NumberFormatException: For input string: “derby” (kafka.log.LogManager)
- [Solved] kafka startup Error: java.net.ConnectException: Connection refused
- kafka Error: Error while fetching metadata with correlation
- How to Solve canal & MYSQL or “Kafka cannot consume data” Error
- [Solved] Error in Summary.factor ‘max’ not meaningful for factors
- [Solved] Error in Summary.factor ‘sum’ not meaningful for factors
- [Solved] Kafka2.3.0 Error: Timeout of 60000ms expired before the position for partition could be determined
- How to Solve Kafka Error: no leader
- Kafka Creates and Writes Logs Error [How to Solve]
- [Solved] AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
- Kafka Error while fetching metadata with correlation id 1 : {alarmHis=LEADER_NOT_AVAILABLE}
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- Oracle VM VirtualBox open replication virtual machine Error
- Mac M1 Start Virtual Machine Centos8 with PD to install Kafka error: Error: VM option ‘UseG1GC‘
- Huawei kafka Authentication error: Server not found in Kerberos database (7) – LOOKING_UP_SERVER
- [Solved] Kafka Restarts error | Cloudera Manager Access Returns 500 | HDFS Startup Error