Bird
0
0

You configured MirrorMaker 2 but no data is replicating. Which is the most likely error in this config?

medium📝 Debug Q14 of 15
Kafka - Multi-Datacenter and Replication
You configured MirrorMaker 2 but no data is replicating. Which is the most likely error in this config?
{
  "clusters": {
    "source": {"bootstrap.servers": "source.kafka:9092"},
    "target": {"bootstrap.servers": "target.kafka:9092"}
  },
  "mirrors": [{"source.cluster": "source", "target.cluster": "target", "topics": []}]
}
ABootstrap servers are incorrectly formatted
BMirrorMaker 2 requires only one cluster in config
CCluster names must be numeric, not strings
DEmpty topics list means no topics are selected for replication
Step-by-Step Solution
Solution:
  1. Step 1: Check topics list in mirror config

    The topics list is empty [], so no topics are selected to replicate.
  2. Step 2: Validate other config parts

    Bootstrap servers are correctly formatted, cluster names as strings are valid, and multiple clusters are allowed.
  3. Final Answer:

    Empty topics list means no topics are selected for replication -> Option D
  4. Quick Check:

    Empty topics list = no replication [OK]
Quick Trick: Empty topics list disables replication [OK]
Common Mistakes:
  • Assuming bootstrap.servers format is wrong
  • Thinking cluster names must be numbers
  • Believing MirrorMaker 2 supports only one cluster

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes