Bird
Raised Fist0

You run the command kafka-topics.sh --describe --topic mytopic --bootstrap-server localhost:9092 but get an error. What is a likely cause?

medium📝 Troubleshoot Q6 of Q15
Kafka - Monitoring and Operations
You run the command kafka-topics.sh --describe --topic mytopic --bootstrap-server localhost:9092 but get an error. What is a likely cause?
AThe bootstrap-server address is incorrect or unreachable
BThe topic name is missing
CThe command does not support --describe
DKafka does not support topic descriptions
Step-by-Step Solution
Solution:
  1. Step 1: Check command syntax

    The command syntax is correct with --describe and --topic options.
  2. Step 2: Identify common connectivity errors

    An unreachable or wrong bootstrap-server address causes connection errors.
  3. Final Answer:

    The bootstrap-server address is incorrect or unreachable -> Option A
  4. Quick Check:

    Bootstrap-server error = Connection failure [OK]
Quick Trick: Verify bootstrap-server address to fix connection errors [OK]
Common Mistakes:
MISTAKES
  • Omitting the topic name
  • Assuming --describe is unsupported
  • Believing Kafka lacks topic description feature

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes