Bird
Raised Fist0

You have this transform chain:

medium📝 Debug Q6 of Q15
Kafka - Connect
You have this transform chain:
transforms=InsertField
transforms.InsertField.type=org.apache.kafka.connect.transforms.InsertField$Value
transforms.InsertField.field=source
transforms.InsertField.value=app1

But the connector fails to start. What is the likely error?
AIncorrect property name: should be 'static.field' and 'static.value' under 'transforms.InsertField'
BMissing 'transforms.InsertField.field' property
CInsertField transform does not support static fields
DThe transform type is invalid
Step-by-Step Solution
Solution:
  1. Step 1: Check property names for InsertField

    The correct properties are 'transforms.InsertField.static.field' and 'transforms.InsertField.static.value'.
  2. Step 2: Identify error cause

    If these are misspelled or misplaced, the connector fails to start due to invalid config.
  3. Final Answer:

    Incorrect property name: should be 'static.field' and 'static.value' under 'transforms.InsertField' -> Option A
  4. Quick Check:

    Property names must match transform config keys exactly [OK]
Quick Trick: Check exact property names for transforms to avoid startup errors [OK]
Common Mistakes:
MISTAKES
  • Using wrong property names or missing dots
  • Assuming InsertField needs 'field' property
  • Mistaking transform type name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes