conduktor.io ↗

Kafka Exception SchemaProjectorException

org.apache.kafka.connect.errors.SchemaProjectorException
Non-retriable Connect

Indicates an error while projecting a schema via SchemaProjector

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.connect.errors.SchemaProjectorException: Schema name mismatch. source name: com.example.OrderV2 and target name: com.example.OrderV1 at org.apache.kafka.connect.data.SchemaProjector.checkMaybeCompatible(SchemaProjector.java:103) at org.apache.kafka.connect.data.SchemaProjector.project(SchemaProjector.java:70) at io.confluent.connect.storage.schema.StorageSchemaCompatibility.project(StorageSchemaCompatibility.java:179) at io.confluent.connect.hdfs.TopicPartitionWriter.write(TopicPartitionWriter.java:420) at org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(WorkerSinkTask.java:585)

Diagnostic Commands

curl -s http://localhost:8083/connectors/<sink>/status | jq '.tasks[].trace' # see whether it's name mismatch / parameters / version-required curl -s http://localhost:8081/subjects/<topic>-value/versions | jq . # list registered schema versions for the topic curl -s http://localhost:8081/config/<topic>-value | jq . # check the per-subject compatibility level

Related

Related Connect exceptions: AlreadyExistsException · ConnectException · DataException · IllegalWorkerStateException · NotFoundException · SchemaBuilderException

Hitting SchemaProjectorException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.