Bird
0
0

What is wrong with this MirrorMaker command?

medium📝 Debug Q7 of 15
Kafka - Multi-Datacenter and Replication

What is wrong with this MirrorMaker command?
bin/kafka-mirror-maker.sh --consumer.config source.properties --producer.config target.properties --whitelist 'orders, payments'

AThe whitelist value should not contain spaces after commas
BProducer config file should be named source.properties
CConsumer config file should be named target.properties
DMirrorMaker does not support whitelist option
Step-by-Step Solution
Solution:
  1. Step 1: Understand whitelist syntax

    Whitelist expects a comma-separated list without spaces to correctly parse topics.
  2. Step 2: Identify syntax error

    Spaces after commas cause MirrorMaker to misinterpret topic names.
  3. Final Answer:

    The whitelist value should not contain spaces after commas -> Option A
  4. Quick Check:

    Whitelist syntax = no spaces after commas [OK]
Quick Trick: No spaces in whitelist topic list [OK]
Common Mistakes:
  • Swapping consumer and producer config files
  • Thinking whitelist is unsupported
  • Ignoring spaces in topic list

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes