conduktor.io ↗

Kafka Error INVALID_REPLICATION_FACTOR

Error code 38 · Non-retriable Admin

Replication factor is below 1 or larger than the number of available brokers.

Common Causes

Solutions

Diagnostic Commands

# Describe topic replicas and ISR status kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic <topic> 2>&1 | grep -E 'ReplicationFactor|Isr|Replicas' # Count online brokers in the cluster kafka-broker-api-versions.sh --bootstrap-server localhost:9092 2>&1 | grep -c 'id:'

Related APIs

This error can be returned by: CreateTopics

Debugging Kafka errors? Conduktor Console gives you real-time visibility into your cluster. Explore all errors in the Error Decoder.