Bird
Raised Fist0

You configured Kafka Connect in distributed mode but notice that only one worker is running and no failover happens. What is the likely cause?

medium📝 Debug Q14 of Q15
Kafka - Connect
You configured Kafka Connect in distributed mode but notice that only one worker is running and no failover happens. What is the likely cause?
AYou started Kafka Connect with connect-standalone.sh instead of connect-distributed.sh
BYou did not configure the Kafka cluster correctly
CYou forgot to add connectors to the worker
DDistributed mode does not support multiple workers
Step-by-Step Solution
Solution:
  1. Step 1: Check the startup script used

    If connect-standalone.sh is used, only one worker runs without failover, even if config is for distributed mode.
  2. Step 2: Understand distributed mode requirements

    Distributed mode requires starting with connect-distributed.sh to run multiple workers and enable failover.
  3. Final Answer:

    You started Kafka Connect with connect-standalone.sh instead of connect-distributed.sh -> Option A
  4. Quick Check:

    Wrong startup script causes single worker [OK]
Quick Trick: Use connect-distributed.sh to run multiple workers [OK]
Common Mistakes:
MISTAKES
  • Assuming config alone enables distributed mode
  • Believing distributed mode runs with standalone script
  • Ignoring startup script importance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes