Bird
Raised Fist0

You have this connector config:

medium📝 Debug Q6 of Q15
Kafka - Connect
You have this connector config:
{"name": "my-source", "connector.class": "FileStreamSourceConnector", "tasks.max": "two", "file": "/tmp/input.txt"}

What is the error in this configuration?
A"tasks.max" should be an integer, not a string.
B"file" property is missing a valid path.
C"connector.class" value is incorrect.
D"name" property cannot contain hyphens.
Step-by-Step Solution
Solution:
  1. Step 1: Check data types of properties

    "tasks.max" must be a number, but here it is a string "two".
  2. Step 2: Validate other properties

    "file" has a valid path, "connector.class" is correct, "name" can have hyphens.
  3. Final Answer:

    "tasks.max" should be an integer, not a string. -> Option A
  4. Quick Check:

    tasks.max must be integer, not string [OK]
Quick Trick: Numeric config values must not be quoted strings [OK]
Common Mistakes:
MISTAKES
  • Using words instead of numbers for numeric fields
  • Misunderstanding property value types
  • Assuming hyphens are invalid in names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes