conduktor.io ↗

Kafka Exception NotFoundException

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

Indicates that an operation attempted to modify or delete a connector or task that is not present on the worker.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.connect.errors.NotFoundException: Connector my-jdbc-source not found at org.apache.kafka.connect.runtime.distributed.DistributedHerder.connectorInfo(DistributedHerder.java:712) at org.apache.kafka.connect.runtime.rest.resources.ConnectorsResource.getConnector(ConnectorsResource.java:212) at jdk.internal.reflect.GeneratedMethodAccessor.invoke(Unknown Source) ... mapped by org.apache.kafka.connect.runtime.rest.errors.ConnectExceptionMapper to HTTP 404 Not Found

Diagnostic Commands

curl -s http://localhost:8083/connectors | jq . # list existing connectors; confirm exact name/case curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8083/connectors/<name>/status # 404 = not found / no status yet curl -s 'http://localhost:8083/connectors?expand=status' | jq 'to_entries[] | {name:.key, state:.value.status.connector.state}' # find FAILED/missing connectors in one call

Related

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

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