Bird
Raised Fist0

A connector configuration includes:

medium📝 Debug Q7 of Q15
Kafka - Connect
A connector configuration includes:
{"name": "sink1", "connector.class": "FileStreamSinkConnector", "topics": "my-topic", "tasks.max": 1, "file": "/tmp/output.txt"}

After deployment, no data appears in the file. What is a likely cause?
AThe "tasks.max" value is too low.
BThe "topics" property is misspelled or missing.
CThe "file" path is not writable by Kafka Connect.
DThe connector class is incorrect for sink connectors.
Step-by-Step Solution
Solution:
  1. Step 1: Verify configuration correctness

    All properties appear correct and valid in syntax and values.
  2. Step 2: Consider runtime environment issues

    If no data appears, file permission issues are common causes.
  3. Final Answer:

    The "file" path is not writable by Kafka Connect. -> Option C
  4. Quick Check:

    File permissions can block sink output [OK]
Quick Trick: Check file permissions if sink connector writes no data [OK]
Common Mistakes:
MISTAKES
  • Assuming config syntax errors cause no output
  • Ignoring OS-level file permission problems
  • Thinking tasks.max affects output presence

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes