Kafka Connect Troubleshooter
What this skill does
Diagnoses Kafka Connect and Amazon MSK Connect failures by walking a
nine-category decision tree that maps the observed symptom (connector
FAILED, task FAILED, growing source lag, DLQ filling, worker
rebalance storm) to a specific root cause with positive evidence.
The skill is verdict-driven: it never emits a fix without first
producing the failing probe that confirms the cause.
STRICT output contract
Every invocation MUST emit exactly one diagnostic block per connector
in this shape — no prose before, no commentary after:
TARGET: <connector-name> or <connector-name>/task-<n>
VERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE
REASON: <1-2 sentences naming the failing category and the probe>
CATEGORY: TASK_EXCEPTION | WORKER_REBALANCE | SOURCE_LAG |
SINK_DLQ | SINK_RETRY | SCHEMA_REGISTRY | IAM_AUTH |
PLUGIN_MISSING | CONFIG_ERROR | SMT_ERROR |
DEBEZIUM_CDC | UNKNOWN
EVIDENCE:
- <observed symptom — status, trace.state, error message>
- <failing probe — command and output that confirms the cause>
- <passing probes — categories ruled out>
REMEDIATION:
1. <specific action with CLI command>
2. <verification command after the fix>
A block missing VERDICT, CATEGORY, EVIDENCE, or REMEDIATION is a
contract violation — re-emit the full block. NEVER combine multiple
connectors in a single block.
Quick navigation
Mindset
A Kafka Connect connector is a stream-processing worker running
inside a Connect cluster. Most failures are not Kafka bugs — they
are configuration drift between the connector, the source system, the
sink system, the schema registry, and the MSK cluster's IAM / network
layer. The skill's job is to find the layer that drifted. The
fastest path is to read connector status first (it surfaces the
trace exception for failed tasks), then narrow to the category that
matches the symptom signature, then run the category-specific probe.
Quick reference — verdict thresholds
| Observation |
Verdict |
Category |
Task state=FAILED, trace contains exception |
ROOT_CAUSE_FOUND |
TASK_EXCEPTION |
Logs show repeated Rebalance / JoinGroup churn |
ROOT_CAUSE_FOUND |
WORKER_REBALANCE |
| LagMax growing, offsets not advancing |
ROOT_CAUSE_FOUND |
SOURCE_LAG |
| DLQ topic receiving records |
ROOT_CAUSE_FOUND |
SINK_DLQ |
| Sink retries exhausted |
ROOT_CAUSE_FOUND |
SINK_RETRY |
SchemaRegistryException / Connection refused to registry |
ROOT_CAUSE_FOUND |
SCHEMA_REGISTRY |
SASL_NOT_LOGGED_IN / Topic authorization failed on MSK |
ROOT_CAUSE_FOUND |
IAM_AUTH |
ClassNotFoundException on connector startup |
ROOT_CAUSE_FOUND |
PLUGIN_MISSING |
Unknown topic / bootstrap.servers wrong |
ROOT_CAUSE_FOUND |
CONFIG_ERROR |
SMT Cast / ExtractTopic exception |
ROOT_CAUSE_FOUND |
SMT_ERROR |
Debezium snapshot stuck / history.internal unreachable |
ROOT_CAUSE_FOUND |
DEBEZIUM_CDC |
| Logs unavailable (logging disabled) |
NEED_MORE_INFO |
(need logs) |
| AWS Health event for MSK in region |
ESCALATE |
(AWS-side incident) |
Pre-flight data gate
Kafka Connect diagnosis requires three data sources: connector
status (state, trace, worker_id), CloudWatch Logs excerpt, and the
cluster's bootstrap / IAM configuration.
Data-gathering commands moved verbatim to references/diagnostic-commands.md.
Load on demand before probing a live connector.
Data-quality short-circuits
Short-circuit table moved verbatim to references/error-handling.md.
Load on demand when the input data itself is suspect.
Process — Diagnostic decision tree (apply in order)
Step 0: Non-obvious behaviours
Moved verbatim to references/advanced-patterns.md.
Load on demand for the full gotcha catalog.
Step 1: Task failure (TASK_EXCEPTION)
Signature: tasks[].state=FAILED, trace contains a Java
exception, OR CloudWatch Logs contain a stack trace.
jq '.connector.status.tasks[] | select(.state=="FAILED") | {id, trace}' connector-status.json
aws logs filter-log-events \
--log-group-name /aws/kafkaconnect/my-connector \
--filter-pattern "Exception" --output json
| Exception |
Root cause |
Fix |
RetriableCommitFailedException |
Offset commit failed (broker down, auth) |
Verify MSK health and IAM. |
ConnectException: ..._converter_... |
Converter mismatch |
Align key.converter / value.converter with producer. |
InvalidReplicationFactor |
MSK auto-topic-create disabled |
Pre-create the topic. |
WakeupException / InterruptException |
Task interrupted (rebalance) |
Route to Step 2. |
OutOfMemoryError |
Worker memory pressure |
Raise worker capacity or reduce parallel tasks. |
SchemaRegistryException |
Registry unreachable |
Route to Step 5. |
Step 2: Worker rebalance storm (WORKER_REBALANCE)
Signature: Logs show repeated JoinGroup / SyncGroup /
Rebalance at <5 minute intervals.
aws logs filter-log-events \
--log-group-name /aws/kafkaconnect/my-connector \
--filter-pattern "Rebalance" \
--start-time $(date -d '1 hour ago' +%s)000 --output json
| Observation |
Root cause |
Fix |
| Rebalance every 2-3 min |
Heartbeat misses timeout |
Raise session.timeout.ms to 30000+, heartbeat.interval.ms to 9000+. |
| Rebalance after every deploy |
Worker over-subscribed |
Add worker capacity or split connectors. |
| Rebalance on broker failover |
Broker instability |
Verify MSK health; check describe-cluster State. |
| Rebalance correlates with task restarts |
Task OOM loop |
Route to Step 1; check for OOM. |
Two connectors sharing group.id |
Group coordinator churn |
Verify group.id uniqueness. |
Step 3: Source connector lag (SOURCE_LAG)
Signature: LagMax grows; source offsets not advancing;
connector RUNNING but throughput zero.
| Observation |
Root cause |
Fix |
| Source DB binlog position static |
Source DB unreachable / creds wrong |
Verify network path and credentials. |
| Consumer group missing from MSK listing |
group.id wrong |
Default is connect-${connectorName}. |
| Lag grows linearly, throughput zero |
Source throttled (RDS IOPS, CDC limit) |
Raise source capacity; check snapshot.mode. |
| Lag grows then resets |
Consumer kicked out (rebalance loop) |
Route to Step 2. |
| Lag on one partition only |
Skewed source key (hot key) |
Salt the key; add partition.count. |
offset.storage.topic missing |
Internal offsets lost |
Pre-create with correct RF. |
Step 4: Sink DLQ and retry (SINK_DLQ / SINK_RETRY)
Signature: DLQ filling; errors.retry.timeout exceeded.
aws cloudwatch get-metric-statistics \
--namespace AWS/KafkaConnect --metric-name ErrorRate \
--dimensions Name=Connector,Value=my-connector \
--start-time $(date -d '1 hour ago' -Iseconds) \
--end-time $(date -Iseconds) --period 60 --statistics Sum
| Symptom |
Root cause |
Fix |
| DLQ filling, all records same exception |
Sink schema mismatch |
Inspect DLQ headers; fix converter or mapping. |
errors.retry.timeout exhausted |
Sink throttled |
Raise errors.retry.timeout; investigate sink capacity. |
| No DLQ configured, task FAILED on first error |
DLQ opt-in not set |
Add errors.deadletterqueue.topic.name + errors.tolerance=all. |
Sink to S3 AccessDenied |
Connector role lacks s3:PutObject |
Add IAM permission. |
| Sink to ES/OS errors on bulk |
Buffer too small / cluster throttled |
Raise batch.size; investigate sink cluster. |
Step 5: Schema registry (SCHEMA_REGISTRY)
Signature: Logs contain SchemaRegistryException, Connection refused, AvroException, or Schema not found.
# Confluent — reachability test from the worker VPC
curl -s http://<registry-host>:8081/subjects | jq .
# Glue Schema Registry
aws glue get-schema-registry --registry-name my-registry
# Verify the connector's schema registry URL
jq '.connectorConfiguration | map(select(.key=="value.converter.schema.registry.url"))' connector.json
| Observation |
Root cause |
Fix |
Connection refused |
Worker subnet lacks egress |
Add SG egress to registry host/port. |
Schema not found for a subject |
Wrong subject name strategy |
Verify value.subject.name.strategy (default TopicNameStrategy). |
Avro ConversionException |
Schema incompatible |
Check schema compatibility (BACKWARD/FORWARD/NONE). |
Glue: AccessDeniedException |
Role lacks glue:GetSchema* |
Add glue:GetSchemaVersion / GetSchemaByDefinition. |
Confluent: 401 Unauthorized |
Auth missing |
Add BASIC auth or schema.registry.basic.auth.*. |
Protobuf: Unsupported format |
Wrong converter |
Use ProtobufConverter for .proto, not AvroConverter. |
Step 6: IAM authentication (IAM_AUTH)
Signature: Logs contain SASL_NOT_LOGGED_IN, Topic authorization failed, or Cluster authorization failed.
jq '.ClusterInfo.ClientAuthentication' auth.json
aws iam simulate-principal-policy \
--policy-source-arn arn:aws:iam::111122223333:role/my-connect-role \
--action-names kafka-cluster:Connect kafka-cluster:DescribeCluster \
kafka-cluster:ReadData kafka-cluster:WriteData \
--resource-arns $CLUSTER_ARN > sim.json
jq '.EvaluationResults[].EvalDecision' sim.json
| Observation |
Root cause |
Fix |
SASL_NOT_LOGGED_IN |
IAM auth not enabled on MSK |
Enable ClientAuthentication.Sasl.Iam. |
Topic authorization failed |
Policy lacks WriteData on topic |
Add kafka-cluster:WriteData for the topic ARN. |
| ACL auth on IAM-enabled MSK |
Mismatched auth method |
Use sasl.iam; remove sasl.scram. |
| SG no egress to brokers on 9094 |
SG misconfiguration |
Add egress to MSK SG on 9094. |
Cluster authorization failed on DescribeCluster |
Missing DescribeCluster |
Add the action to the role. |
Step 7: Plugin / connector class not found (PLUGIN_MISSING)
Signature: Logs contain ClassNotFoundException,
NoClassDefFoundError, or connector fails on creation.
aws kafkaconnect list-custom-plugins --query 'customPlugins[?state==`ACTIVE`]'
jq '.connectorConfiguration | map(select(.key=="connector.class"))' connector.json
aws kafkaconnect describe-custom-plugin --custom-plugin-arn <plugin-arn>
| Symptom |
Root cause |
Fix |
ClassNotFoundException: io.debezium...MySqlConnector |
Debezium JAR not in plugin |
Re-upload a fat JAR with all dependencies. |
NoClassDefFoundError: com.fasterxml.jackson... |
Transitive dep missing |
Rebuild ZIP with mvn dependency:copy-dependencies. |
Plugin state=FAILED |
Upload or parsing failed |
Re-upload from S3; inspect describe-custom-plugin. |
Connector class not found for built-in |
Using self-managed class name on MSK |
Use MSK's built-in plugin ARN. |
Two plugins with same connector.class |
Class conflict |
Isolate plugins or remove duplicate. |
Step 8: Connector configuration errors (CONFIG_ERROR)
Signature: Connector fails on creation or restart; error
mentions a config key, topic name, or bootstrap servers.
# REST API config validation (self-managed)
curl -s http://<worker>:8083/connector-plugins/{class}/config/validate \
--data @connector-config.json | jq '.validation_results'
jq '.connectorConfiguration' connector.json
| Symptom |
Root cause |
Fix |
Unknown topic or partition |
topics wrong or topic missing |
Pre-create the topic or fix the list. |
bootstrap.servers no response |
Wrong port or auth mismatch |
Use IAM endpoint (9094) for IAM auth. |
offset.storage.topic missing |
Default topic not created |
Pre-create connect-offsets, connect-configs, connect-status. |
| Converter mismatch |
Producer/connector mismatch |
Set both converters to match. |
tasks.max > partitions |
Idle tasks |
Lower tasks.max to partition count. |
Sink Duplicate key |
Idempotence not configured |
Enable sink idempotence (JDBC insert.mode=upsert). |
Step 9: Single Message Transforms (SMT_ERROR)
Signature: Logs contain an SMT class (Cast, ExtractTopic,
TimestampConverter) in the exception.
jq '.connectorConfiguration | map(select(.key | startswith("transforms")))' connector.json
| Symptom |
Root cause |
Fix |
Cast on a non-castable field |
Cast spec wrong |
Inspect schema; cast only primitives. |
ExtractTopic on a nested field |
Path wrong |
Use ReplaceField or flatten first. |
TimestampConverter epoch mismatch |
Source format mismatch |
Set target.type and field correctly. |
SetSchemaMetadata schema name mismatch |
Schema not registered |
Register first, or use matching strategy. |
| SMT order wrong |
SMTs run AFTER source converters, BEFORE sink |
Reorder the transforms list. |
Custom SMT ClassNotFoundException |
SMT class not in plugin |
Re-build with the custom SMT JAR. |
Step 10: Debezium CDC specifics (DEBEZIUM_CDC)
Signature: Debezium connector (mysql, postgresql, mongodb,
sqlserver); startup hangs or snapshot never completes.
| Symptom |
Root cause |
Fix |
history.internal.kafka.topic producer errors |
Topic missing or auth |
Pre-create history topic; verify IAM. |
| Snapshot stuck on large table |
Single-threaded snapshot |
Use snapshot.fetch.size; incremental snapshots (1.6+). |
binlog position not found |
MySQL purged binlog |
Re-snapshot from current; raise binlog retention. |
Postgres WAL segment removed |
wal_level=logical not set |
Set wal_keep_size; use pg_recvlogical. |
slot 'debezium' already exists |
Slot from previous run |
Drop the replication slot, or set slot.name uniquely. |
Step 11: AWS-side incident escalation
If AWS Health shows an active MSK or MSK Connect incident in the
region during the failure, emit ESCALATE. Do NOT diagnose connector-
level causes when the platform is degraded.
aws health describe-events \
--filter eventStatusCodes=OPEN,services=KAFKA \
--region us-east-1 --output json
Step 12: Final verdict
- If a single category's failing probe produced positive evidence,
emit ROOT_CAUSE_FOUND with that CATEGORY.
- If two categories overlap (e.g., TASK_EXCEPTION with underlying
SCHEMA_REGISTRY), pick the most-specific category and note the
task layer in EVIDENCE.
- If a probe requires operator input (logs disabled, REST API
unreachable), emit NEED_MORE_INFO with the data gap.
- If AWS Health shows an active MSK incident, emit ESCALATE.
Output format — worked examples
Worked example — sink DLQ schema mismatch
TARGET: s3-sink-connector
VERDICT: ROOT_CAUSE_FOUND
REASON: Sink connector sends records to DLQ at 100% error rate. DLQ
headers show AvroConverter cannot decode — producer uses Protobuf,
connector is configured with AvroConverter.
CATEGORY: SINK_DLQ
EVIDENCE:
- connector RUNNING, tasks[0] FAILED then restarted
- DLQ topic s3-sink-dlq receiving ~200 records/min
- Failing probe: DLQ header __connect.errors.exception =
"SerializationException: Error deserializing Avro message";
producer is Protobuf per producer config
- Passing probes: no rebalance; IAM valid; topic exists
REMEDIATION:
1. Change the sink converter to match the producer:
aws kafkaconnect update-connector --connector-arn $ARN \
--connector-configuration '{"value.converter":"io.confluent.connect.protobuf.ProtobufConverter",...}'
2. Verify: aws kafkaconnect describe-connector --connector-arn $ARN
--query 'connector.state'
3. Drain the DLQ once the fix is verified.
Worked example — IAM auth missing on MSK
Moved verbatim to references/worked-examples.md.
Load on demand when formatting an IAM_AUTH verdict.
Worked example — source lag with hot partition
Moved verbatim to references/worked-examples.md.
Load on demand when formatting a SOURCE_LAG verdict.
Worked example — plugin missing (Debezium)
Moved verbatim to references/worked-examples.md.
Load on demand when formatting a PLUGIN_MISSING verdict.
Worked example — NEED_MORE_INFO
Moved verbatim to references/worked-examples.md.
Load on demand when logs are unavailable.
NEVER do these things
NEVER restart a connector to "fix" a FAILED task without first
reading the trace and CloudWatch logs. A restart clears the
state but not the cause — the connector fails again on the same
record (sink) or source position. Read the failure first.
NEVER assume a connector RUNNING state means tasks are
healthy. The connector state reflects the framework; tasks may
all be FAILED. Always inspect tasks[].state.
NEVER assume Schema Registry is reachable because the operator
can reach it. The Connect worker runs in a different network
context (VPC, subnet, SG). Test from inside the VPC, not from the
operator's laptop.
NEVER use errors.tolerance=none (default) for a production sink
without a DLQ. The first error stops the task. Set
errors.tolerance=all and configure errors.deadletterqueue.topic.name.
NEVER run MSK IAM auth with a policy granting kafka:* on *.
Scope to the specific cluster ARN and the specific actions
(kafka-cluster:Connect, DescribeCluster, ReadData,
WriteData). A broad policy lets any principal with the role
produce/consume any topic.
NEVER upload a Debezium plugin as a thin JAR. Debezium connectors
depend on a dozen transitive libraries; without them the plugin
throws NoClassDefFoundError. Use the official fat JAR / ZIP.
NEVER use PLAINTEXT (9092) brokers on MSK in production. MSK
supports TLS (9094) with IAM auth, or SCRAM (9094) with TLS.
NEVER set session.timeout.ms below 10000 on a connector whose
worker runs GC pauses. A 5-10s GC pause triggers a false rebalance.
Use 30000 with heartbeat.interval.ms=9000.
NEVER skip the IAM simulate-principal-policy check for MSK
connectors. The execution role MUST have kafka-cluster:* on the
cluster ARN AND on the topic ARNs.
NEVER combine two connectors with the same group.id. They fight
over the consumer group, triggering a rebalance loop. Default is
connect-${connectorName}; verify uniqueness.
Expert heuristic — the 60-second triage
When handed a failing Kafka Connect connector and asked "what's
wrong?", run this 60-second triage before deep-diving any single
category:
- Pull connector status.
connector.state and
tasks[].state narrow the category:
trace has a Java exception → Step 1 (TASK_EXCEPTION).
- Logs show
Rebalance every few minutes → Step 2.
- State RUNNING but LagMax grows → Step 3 (SOURCE_LAG).
- DLQ filling → Step 4 (SINK_DLQ / SINK_RETRY).
Connection refused to schema registry → Step 5.
SASL_NOT_LOGGED_IN / authorization failed → Step 6 (IAM_AUTH).
ClassNotFoundException on creation → Step 7 (PLUGIN_MISSING).
Unknown topic / wrong bootstrap → Step 8 (CONFIG_ERROR).
- SMT class in the trace → Step 9 (SMT_ERROR).
- Pull CloudWatch Logs. The exception is often only in logs.
- Verify MSK broker health (
describe-cluster State=ACTIVE).
- Verify IAM (
simulate-principal-policy on the connector role).
- Verify SG egress from the worker subnet to MSK on 9094.
If none produces a failing probe, the category is UNKNOWN and the
next step is to enable CloudWatch logging and re-run.
Pre-flight safety checks (run before any remediation CLI)
- MANDATORY CONFIRMATION GATE. Before any state-changing operation
(
update-connector, delete-connector, create-custom-plugin,
kafka update-configuration), emit and await operator approval.
- Never
delete-connector without first exporting the config.
aws kafkaconnect describe-connector --connector-arn $ARN --output json > backup.json.
- Never restart a connector during a rebalance storm. Wait for
it to settle, then address the root cause.
- One category per maintenance window. Stacking fixes obscures
which one produced the recovery.
- Bulk operation safety limit. Slice a fleet diagnosis into
batches of at most 3 connectors; emit per-connector REMEDIATION
and a single CONFIRM per batch.
Verdict semantics
| Verdict |
When to emit |
Position in workflow |
ROOT_CAUSE_FOUND |
A failing probe produced positive evidence. |
Primary — terminal for actionable findings. |
NEED_MORE_INFO |
A required probe is unavailable (no logs, REST API unreachable). |
Pre-decision — emit with the specific data gap. |
ESCALATE |
AWS Health shows an active MSK or MSK Connect incident. |
Pre-decision — surface event ARN; do NOT diagnose connector-level causes. |
Recent AWS features (2024-2026)
Moved verbatim to references/advanced-patterns.md.
Load on demand to check what changed in the last 24 months.
References (load on demand)
- references/worked-examples.md — secondary worked examples moved from this SKILL.md
- references/error-handling.md — data-quality short-circuits moved from this SKILL.md
- references/diagnostic-commands.md — pre-flight data-gathering commands moved from this SKILL.md
- references/advanced-patterns.md — Step-0 non-obvious behaviours and recent AWS features moved from this SKILL.md
- references/msk-connect-config-reference.md — connector config keys, lifecycle states, and failure modes
Domain
AWS CloudOps / Analytics — Kafka Connect and MSK Connect failure
diagnosis.
AWS documentation
1---2name: kafka-connect-troubleshooter3description: Diagnoses Kafka Connect and Amazon MSK Connect issues through a nine-category diagnostic tree — task FAILED status (task exceptions), worker rebalance storms (consumer group coordinator churn), source connector lag (LagMax, offset not advancing), sink connector errors (DLQ config, retry exhaustion), schema registry connectivity (Avro/JSON/Protobuf, Confluent, Glue Schema Registry), IAM auth for MSK (kafka-cluster principal), plugin or connector class not found (custom plugin, Debezium), config errors (wrong topics, bootstrap servers, converter mismatch), and Single Message Transforms (SMT chain, Cast, ExtractTopic). Reads describe-connector or REST API status, CloudWatch logs (/aws/kafkaconnect/), and MSK describe-cluster for bootstrap and IAM validation. Emits ROOT_CAUSE_FOUND with the failing probe, NEED_MORE_INFO when a probe requires operator input, or ESCALATE for AWS-side incidents. Use when a connector shows FAILED, task FAILED, source lag grows, sink DLQ fills, or a plugin will not start.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline classification works from a pasted connector status JSON, CloudWatch Logs excerpt, or worker error. Live-account diagnosis uses aws kafkaconnect describe-connector / list-connectors / update-connector; aws kafka describe-cluster / get-bootstrap-brokers; aws logs filter-log-events on /aws/kafkaconnect/; aws ec2 describe-security-groups; aws glue get-schema-registry or the Confluent Schema Registry REST...6metadata:7 source: https://skillmd.com/skills/jhkchan/kafka-connect-troubleshooter8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '2'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Analytics15 task_type: troubleshoot16 skill_class: capability17 lifecycle_status: active18 verdict_shape: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE19 when_to_use: Diagnosing a Kafka Connect or Amazon MSK Connect connector that FAILED, has tasks in FAILED state, is stuck in worker rebalance, is showing growing source lag (LagMax climbing), is filling the DLQ, is failing schema-registry lookups (Avro/JSON/Protobuf), is unable to authenticate to MSK via IAM, is reporting class not found for a custom plugin or Debezium connector, or is surfacing Single Message Transforms errors.20 when_not_to_use: MSK cluster creation / capacity planning — use an MSK deploy skill, not a diagnostic., Kafka producer / consumer application bugs outside Connect — use a Kafka client troubleshooter., Kafka topic configuration (partitions, retention) — use an MSK admin skill., Schema evolution compatibility strategy — use a Schema Registry design skill; this skill diagnoses connectivity.21 activation_triggers: Kafka Connect failed, MSK Connect connector FAILED, Kafka Connect task FAILED, connector class not found, Kafka Connect worker rebalance, source connector lag growing, LagMax Kafka Connect, sink connector DLQ full, dead letter queue overflow, schema registry connection refused, Avro serializer error, MSK IAM authentication failed, Debezium connector not starting, Single Message Transform error, SMT Cast error, custom plugin upload failed, bootstrap servers wrong, diagnose Kafka Connect failure22 invocation_schema: 'Input: either (a) a connector name + live-account context (MSK Connect), (b) a pasted connector status JSON from the REST API or describe-connector, OR (c) a CloudWatch Logs excerpt from /aws/kafkaconnect/. Output: a deterministic TARGET / VERDICT / REASON / CATEGORY / EVIDENCE / REMEDIATION block per connector, where VERDICT is {ROOT_CAUSE_FOUND, NEED_MORE_INFO, ESCALATE} and CATEGORY is {TASK_EXCEPTION, WORKER_REBALANCE, SOURCE_LAG, SINK_DLQ, SINK_RETRY, SCHEMA_REGISTRY, IAM_AUTH, PLUGIN_MISSING, CONFIG_ERROR, SMT_ERROR, DEBEZIUM_CDC, UNKNOWN}.'23 version: 0.1.024 author: Jacky Chan — AWS Community Builder25 keywords: Kafka Connect, MSK Connect, connector failure, task FAILED, worker rebalance, source connector lag, LagMax, consumer group, sink connector, dead letter queue, DLQ, retry exhaustion, schema registry, Avro, Confluent, Glue Schema Registry, IAM auth, MSK IAM, plugin not found, connector class not found, custom plugin, Debezium, Single Message Transforms, SMT, bootstrap servers, Analytics26 tags: kafka-connect, msk, analytics, troubleshoot, streaming, debezium27---2829# Kafka Connect Troubleshooter3031## What this skill does3233Diagnoses Kafka Connect and Amazon MSK Connect failures by walking a34nine-category decision tree that maps the observed symptom (connector35FAILED, task FAILED, growing source lag, DLQ filling, worker36rebalance storm) to a specific root cause with positive evidence.37The skill is verdict-driven: it never emits a fix without first38producing the failing probe that confirms the cause.3940## STRICT output contract4142Every invocation MUST emit exactly one diagnostic block per connector43in this shape — no prose before, no commentary after:4445```text46TARGET: <connector-name> or <connector-name>/task-<n>47VERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE48REASON: <1-2 sentences naming the failing category and the probe>49CATEGORY: TASK_EXCEPTION | WORKER_REBALANCE | SOURCE_LAG |50 SINK_DLQ | SINK_RETRY | SCHEMA_REGISTRY | IAM_AUTH |51 PLUGIN_MISSING | CONFIG_ERROR | SMT_ERROR |52 DEBEZIUM_CDC | UNKNOWN53EVIDENCE:54 - <observed symptom — status, trace.state, error message>55 - <failing probe — command and output that confirms the cause>56 - <passing probes — categories ruled out>57REMEDIATION:58 1. <specific action with CLI command>59 2. <verification command after the fix>60```6162A block missing VERDICT, CATEGORY, EVIDENCE, or REMEDIATION is a63contract violation — re-emit the full block. NEVER combine multiple64connectors in a single block.6566## Quick navigation6768| # | Section | Jump when |69|---|---|---|70| 1 | [STRICT output contract](#strict-output-contract) | Confirm block shape before emitting |71| 2 | [Verdict thresholds](#quick-reference--verdict-thresholds) | Symptom → verdict → category map |72| 3 | [Pre-flight data gate](#pre-flight-data-gate) | Required data sources |73| 4 | [Decision tree](#process--diagnostic-decision-tree) | Step-by-step categories |74| 5 | [NEVER anti-patterns](#never-do-these-things) | Kafka Connect taboos |75| 6 | [Expert heuristic](#expert-heuristic--the-60-second-triage) | 60-second triage |76| 7 | [Recent AWS features](#recent-aws-features-2024-2026) | What changed in 24 months |7778## Mindset7980A Kafka Connect connector is a stream-processing worker running81inside a Connect cluster. Most failures are not Kafka bugs — they82are configuration drift between the connector, the source system, the83sink system, the schema registry, and the MSK cluster's IAM / network84layer. The skill's job is to find the layer that drifted. The85fastest path is to read connector `status` first (it surfaces the86`trace` exception for failed tasks), then narrow to the category that87matches the symptom signature, then run the category-specific probe.8889## Quick reference — verdict thresholds9091| Observation | Verdict | Category |92|---|---|---|93| Task `state=FAILED`, `trace` contains exception | **ROOT_CAUSE_FOUND** | TASK_EXCEPTION |94| Logs show repeated `Rebalance` / `JoinGroup` churn | **ROOT_CAUSE_FOUND** | WORKER_REBALANCE |95| LagMax growing, offsets not advancing | **ROOT_CAUSE_FOUND** | SOURCE_LAG |96| DLQ topic receiving records | **ROOT_CAUSE_FOUND** | SINK_DLQ |97| Sink retries exhausted | **ROOT_CAUSE_FOUND** | SINK_RETRY |98| `SchemaRegistryException` / `Connection refused` to registry | **ROOT_CAUSE_FOUND** | SCHEMA_REGISTRY |99| `SASL_NOT_LOGGED_IN` / `Topic authorization failed` on MSK | **ROOT_CAUSE_FOUND** | IAM_AUTH |100| `ClassNotFoundException` on connector startup | **ROOT_CAUSE_FOUND** | PLUGIN_MISSING |101| `Unknown topic` / `bootstrap.servers` wrong | **ROOT_CAUSE_FOUND** | CONFIG_ERROR |102| SMT `Cast` / `ExtractTopic` exception | **ROOT_CAUSE_FOUND** | SMT_ERROR |103| Debezium `snapshot` stuck / `history.internal` unreachable | **ROOT_CAUSE_FOUND** | DEBEZIUM_CDC |104| Logs unavailable (logging disabled) | **NEED_MORE_INFO** | (need logs) |105| AWS Health event for MSK in region | **ESCALATE** | (AWS-side incident) |106107## Pre-flight data gate108109Kafka Connect diagnosis requires three data sources: connector110status (state, trace, worker_id), CloudWatch Logs excerpt, and the111cluster's bootstrap / IAM configuration.112113Data-gathering commands moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md).114Load on demand before probing a live connector.115116### Data-quality short-circuits117118Short-circuit table moved verbatim to [references/error-handling.md](references/error-handling.md).119Load on demand when the input data itself is suspect.120121## Process — Diagnostic decision tree (apply in order)122123### Step 0: Non-obvious behaviours124125Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).126Load on demand for the full gotcha catalog.127128### Step 1: Task failure (TASK_EXCEPTION)129130**Signature:** `tasks[].state=FAILED`, `trace` contains a Java131exception, OR CloudWatch Logs contain a stack trace.132133```bash134jq '.connector.status.tasks[] | select(.state=="FAILED") | {id, trace}' connector-status.json135aws logs filter-log-events \136 --log-group-name /aws/kafkaconnect/my-connector \137 --filter-pattern "Exception" --output json138```139140| Exception | Root cause | Fix |141|---|---|---|142| `RetriableCommitFailedException` | Offset commit failed (broker down, auth) | Verify MSK health and IAM. |143| `ConnectException: ..._converter_...` | Converter mismatch | Align `key.converter` / `value.converter` with producer. |144| `InvalidReplicationFactor` | MSK auto-topic-create disabled | Pre-create the topic. |145| `WakeupException` / `InterruptException` | Task interrupted (rebalance) | Route to Step 2. |146| `OutOfMemoryError` | Worker memory pressure | Raise worker capacity or reduce parallel tasks. |147| `SchemaRegistryException` | Registry unreachable | Route to Step 5. |148149### Step 2: Worker rebalance storm (WORKER_REBALANCE)150151**Signature:** Logs show repeated `JoinGroup` / `SyncGroup` /152`Rebalance` at <5 minute intervals.153154```bash155aws logs filter-log-events \156 --log-group-name /aws/kafkaconnect/my-connector \157 --filter-pattern "Rebalance" \158 --start-time $(date -d '1 hour ago' +%s)000 --output json159```160161| Observation | Root cause | Fix |162|---|---|---|163| Rebalance every 2-3 min | Heartbeat misses timeout | Raise `session.timeout.ms` to 30000+, `heartbeat.interval.ms` to 9000+. |164| Rebalance after every deploy | Worker over-subscribed | Add worker capacity or split connectors. |165| Rebalance on broker failover | Broker instability | Verify MSK health; check `describe-cluster` State. |166| Rebalance correlates with task restarts | Task OOM loop | Route to Step 1; check for OOM. |167| Two connectors sharing `group.id` | Group coordinator churn | Verify `group.id` uniqueness. |168169### Step 3: Source connector lag (SOURCE_LAG)170171**Signature:** LagMax grows; source offsets not advancing;172connector `RUNNING` but throughput zero.173174| Observation | Root cause | Fix |175|---|---|---|176| Source DB binlog position static | Source DB unreachable / creds wrong | Verify network path and credentials. |177| Consumer group missing from MSK listing | `group.id` wrong | Default is `connect-${connectorName}`. |178| Lag grows linearly, throughput zero | Source throttled (RDS IOPS, CDC limit) | Raise source capacity; check `snapshot.mode`. |179| Lag grows then resets | Consumer kicked out (rebalance loop) | Route to Step 2. |180| Lag on one partition only | Skewed source key (hot key) | Salt the key; add `partition.count`. |181| `offset.storage.topic` missing | Internal offsets lost | Pre-create with correct RF. |182183### Step 4: Sink DLQ and retry (SINK_DLQ / SINK_RETRY)184185**Signature:** DLQ filling; `errors.retry.timeout` exceeded.186187```bash188aws cloudwatch get-metric-statistics \189 --namespace AWS/KafkaConnect --metric-name ErrorRate \190 --dimensions Name=Connector,Value=my-connector \191 --start-time $(date -d '1 hour ago' -Iseconds) \192 --end-time $(date -Iseconds) --period 60 --statistics Sum193```194195| Symptom | Root cause | Fix |196|---|---|---|197| DLQ filling, all records same exception | Sink schema mismatch | Inspect DLQ headers; fix converter or mapping. |198| `errors.retry.timeout` exhausted | Sink throttled | Raise `errors.retry.timeout`; investigate sink capacity. |199| No DLQ configured, task FAILED on first error | DLQ opt-in not set | Add `errors.deadletterqueue.topic.name` + `errors.tolerance=all`. |200| Sink to S3 `AccessDenied` | Connector role lacks s3:PutObject | Add IAM permission. |201| Sink to ES/OS errors on bulk | Buffer too small / cluster throttled | Raise `batch.size`; investigate sink cluster. |202203### Step 5: Schema registry (SCHEMA_REGISTRY)204205**Signature:** Logs contain `SchemaRegistryException`, `Connection206refused`, `AvroException`, or `Schema not found`.207208```bash209# Confluent — reachability test from the worker VPC210curl -s http://<registry-host>:8081/subjects | jq .211# Glue Schema Registry212aws glue get-schema-registry --registry-name my-registry213# Verify the connector's schema registry URL214jq '.connectorConfiguration | map(select(.key=="value.converter.schema.registry.url"))' connector.json215```216217| Observation | Root cause | Fix |218|---|---|---|219| `Connection refused` | Worker subnet lacks egress | Add SG egress to registry host/port. |220| `Schema not found` for a subject | Wrong subject name strategy | Verify `value.subject.name.strategy` (default `TopicNameStrategy`). |221| Avro `ConversionException` | Schema incompatible | Check schema compatibility (BACKWARD/FORWARD/NONE). |222| Glue: `AccessDeniedException` | Role lacks `glue:GetSchema*` | Add `glue:GetSchemaVersion` / `GetSchemaByDefinition`. |223| Confluent: `401 Unauthorized` | Auth missing | Add BASIC auth or `schema.registry.basic.auth.*`. |224| Protobuf: `Unsupported format` | Wrong converter | Use `ProtobufConverter` for .proto, not AvroConverter. |225226### Step 6: IAM authentication (IAM_AUTH)227228**Signature:** Logs contain `SASL_NOT_LOGGED_IN`, `Topic229authorization failed`, or `Cluster authorization failed`.230231```bash232jq '.ClusterInfo.ClientAuthentication' auth.json233aws iam simulate-principal-policy \234 --policy-source-arn arn:aws:iam::111122223333:role/my-connect-role \235 --action-names kafka-cluster:Connect kafka-cluster:DescribeCluster \236 kafka-cluster:ReadData kafka-cluster:WriteData \237 --resource-arns $CLUSTER_ARN > sim.json238jq '.EvaluationResults[].EvalDecision' sim.json239```240241| Observation | Root cause | Fix |242|---|---|---|243| `SASL_NOT_LOGGED_IN` | IAM auth not enabled on MSK | Enable `ClientAuthentication.Sasl.Iam`. |244| `Topic authorization failed` | Policy lacks `WriteData` on topic | Add `kafka-cluster:WriteData` for the topic ARN. |245| ACL auth on IAM-enabled MSK | Mismatched auth method | Use `sasl.iam`; remove `sasl.scram`. |246| SG no egress to brokers on 9094 | SG misconfiguration | Add egress to MSK SG on 9094. |247| `Cluster authorization failed` on DescribeCluster | Missing `DescribeCluster` | Add the action to the role. |248249### Step 7: Plugin / connector class not found (PLUGIN_MISSING)250251**Signature:** Logs contain `ClassNotFoundException`,252`NoClassDefFoundError`, or connector fails on creation.253254```bash255aws kafkaconnect list-custom-plugins --query 'customPlugins[?state==`ACTIVE`]'256jq '.connectorConfiguration | map(select(.key=="connector.class"))' connector.json257aws kafkaconnect describe-custom-plugin --custom-plugin-arn <plugin-arn>258```259260| Symptom | Root cause | Fix |261|---|---|---|262| `ClassNotFoundException: io.debezium...MySqlConnector` | Debezium JAR not in plugin | Re-upload a fat JAR with all dependencies. |263| `NoClassDefFoundError: com.fasterxml.jackson...` | Transitive dep missing | Rebuild ZIP with `mvn dependency:copy-dependencies`. |264| Plugin `state=FAILED` | Upload or parsing failed | Re-upload from S3; inspect `describe-custom-plugin`. |265| `Connector class not found` for built-in | Using self-managed class name on MSK | Use MSK's built-in plugin ARN. |266| Two plugins with same `connector.class` | Class conflict | Isolate plugins or remove duplicate. |267268### Step 8: Connector configuration errors (CONFIG_ERROR)269270**Signature:** Connector fails on creation or restart; error271mentions a config key, topic name, or bootstrap servers.272273```bash274# REST API config validation (self-managed)275curl -s http://<worker>:8083/connector-plugins/{class}/config/validate \276 --data @connector-config.json | jq '.validation_results'277jq '.connectorConfiguration' connector.json278```279280| Symptom | Root cause | Fix |281|---|---|---|282| `Unknown topic or partition` | `topics` wrong or topic missing | Pre-create the topic or fix the list. |283| `bootstrap.servers` no response | Wrong port or auth mismatch | Use IAM endpoint (9094) for IAM auth. |284| `offset.storage.topic` missing | Default topic not created | Pre-create `connect-offsets`, `connect-configs`, `connect-status`. |285| Converter mismatch | Producer/connector mismatch | Set both converters to match. |286| `tasks.max` > partitions | Idle tasks | Lower `tasks.max` to partition count. |287| Sink `Duplicate key` | Idempotence not configured | Enable sink idempotence (JDBC `insert.mode=upsert`). |288289### Step 9: Single Message Transforms (SMT_ERROR)290291**Signature:** Logs contain an SMT class (`Cast`, `ExtractTopic`,292`TimestampConverter`) in the exception.293294```bash295jq '.connectorConfiguration | map(select(.key | startswith("transforms")))' connector.json296```297298| Symptom | Root cause | Fix |299|---|---|---|300| `Cast` on a non-castable field | Cast spec wrong | Inspect schema; cast only primitives. |301| `ExtractTopic` on a nested field | Path wrong | Use `ReplaceField` or flatten first. |302| `TimestampConverter` epoch mismatch | Source format mismatch | Set `target.type` and `field` correctly. |303| `SetSchemaMetadata` schema name mismatch | Schema not registered | Register first, or use matching strategy. |304| SMT order wrong | SMTs run AFTER source converters, BEFORE sink | Reorder the `transforms` list. |305| Custom SMT `ClassNotFoundException` | SMT class not in plugin | Re-build with the custom SMT JAR. |306307### Step 10: Debezium CDC specifics (DEBEZIUM_CDC)308309**Signature:** Debezium connector (mysql, postgresql, mongodb,310sqlserver); startup hangs or snapshot never completes.311312| Symptom | Root cause | Fix |313|---|---|---|314| `history.internal.kafka.topic` producer errors | Topic missing or auth | Pre-create history topic; verify IAM. |315| Snapshot stuck on large table | Single-threaded snapshot | Use `snapshot.fetch.size`; incremental snapshots (1.6+). |316| `binlog` position not found | MySQL purged binlog | Re-snapshot from current; raise binlog retention. |317| Postgres `WAL segment removed` | `wal_level=logical` not set | Set `wal_keep_size`; use `pg_recvlogical`. |318| `slot 'debezium' already exists` | Slot from previous run | Drop the replication slot, or set `slot.name` uniquely. |319320### Step 11: AWS-side incident escalation321322If AWS Health shows an active MSK or MSK Connect incident in the323region during the failure, emit ESCALATE. Do NOT diagnose connector-324level causes when the platform is degraded.325326```bash327aws health describe-events \328 --filter eventStatusCodes=OPEN,services=KAFKA \329 --region us-east-1 --output json330```331332### Step 12: Final verdict333334- If a single category's failing probe produced positive evidence,335 emit **ROOT_CAUSE_FOUND** with that CATEGORY.336- If two categories overlap (e.g., TASK_EXCEPTION with underlying337 SCHEMA_REGISTRY), pick the **most-specific** category and note the338 task layer in EVIDENCE.339- If a probe requires operator input (logs disabled, REST API340 unreachable), emit **NEED_MORE_INFO** with the data gap.341- If AWS Health shows an active MSK incident, emit **ESCALATE**.342343## Output format — worked examples344345### Worked example — sink DLQ schema mismatch346347```text348TARGET: s3-sink-connector349VERDICT: ROOT_CAUSE_FOUND350REASON: Sink connector sends records to DLQ at 100% error rate. DLQ351 headers show AvroConverter cannot decode — producer uses Protobuf,352 connector is configured with AvroConverter.353CATEGORY: SINK_DLQ354EVIDENCE:355 - connector RUNNING, tasks[0] FAILED then restarted356 - DLQ topic s3-sink-dlq receiving ~200 records/min357 - Failing probe: DLQ header __connect.errors.exception =358 "SerializationException: Error deserializing Avro message";359 producer is Protobuf per producer config360 - Passing probes: no rebalance; IAM valid; topic exists361REMEDIATION:362 1. Change the sink converter to match the producer:363 aws kafkaconnect update-connector --connector-arn $ARN \364 --connector-configuration '{"value.converter":"io.confluent.connect.protobuf.ProtobufConverter",...}'365 2. Verify: aws kafkaconnect describe-connector --connector-arn $ARN366 --query 'connector.state'367 3. Drain the DLQ once the fix is verified.368```369370### Worked example — IAM auth missing on MSK371372Moved verbatim to [references/worked-examples.md](references/worked-examples.md).373Load on demand when formatting an IAM_AUTH verdict.374375### Worked example — source lag with hot partition376377Moved verbatim to [references/worked-examples.md](references/worked-examples.md).378Load on demand when formatting a SOURCE_LAG verdict.379380### Worked example — plugin missing (Debezium)381382Moved verbatim to [references/worked-examples.md](references/worked-examples.md).383Load on demand when formatting a PLUGIN_MISSING verdict.384385### Worked example — NEED_MORE_INFO386387Moved verbatim to [references/worked-examples.md](references/worked-examples.md).388Load on demand when logs are unavailable.389390## NEVER do these things391392- **NEVER restart a connector to "fix" a FAILED task without first393 reading the `trace` and CloudWatch logs.** A restart clears the394 state but not the cause — the connector fails again on the same395 record (sink) or source position. Read the failure first.396397- **NEVER assume a connector `RUNNING` state means tasks are398 healthy.** The connector state reflects the framework; tasks may399 all be FAILED. Always inspect `tasks[].state`.400401- **NEVER assume Schema Registry is reachable because the operator402 can reach it.** The Connect worker runs in a different network403 context (VPC, subnet, SG). Test from inside the VPC, not from the404 operator's laptop.405406- **NEVER use `errors.tolerance=none` (default) for a production sink407 without a DLQ.** The first error stops the task. Set408 `errors.tolerance=all` and configure `errors.deadletterqueue.topic.name`.409410- **NEVER run MSK IAM auth with a policy granting `kafka:*` on `*`.**411 Scope to the specific cluster ARN and the specific actions412 (`kafka-cluster:Connect`, `DescribeCluster`, `ReadData`,413 `WriteData`). A broad policy lets any principal with the role414 produce/consume any topic.415416- NEVER upload a Debezium plugin as a thin JAR. Debezium connectors417 depend on a dozen transitive libraries; without them the plugin418 throws `NoClassDefFoundError`. Use the official fat JAR / ZIP.419420- NEVER use PLAINTEXT (9092) brokers on MSK in production. MSK421 supports TLS (9094) with IAM auth, or SCRAM (9094) with TLS.422423- NEVER set `session.timeout.ms` below 10000 on a connector whose424 worker runs GC pauses. A 5-10s GC pause triggers a false rebalance.425 Use 30000 with `heartbeat.interval.ms=9000`.426427- NEVER skip the IAM `simulate-principal-policy` check for MSK428 connectors. The execution role MUST have `kafka-cluster:*` on the429 cluster ARN AND on the topic ARNs.430431- NEVER combine two connectors with the same `group.id`. They fight432 over the consumer group, triggering a rebalance loop. Default is433 `connect-${connectorName}`; verify uniqueness.434435## Expert heuristic — the 60-second triage436437When handed a failing Kafka Connect connector and asked "what's438wrong?", run this 60-second triage before deep-diving any single439category:4404411. **Pull connector status.** `connector.state` and442 `tasks[].state` narrow the category:443 - `trace` has a Java exception → Step 1 (TASK_EXCEPTION).444 - Logs show `Rebalance` every few minutes → Step 2.445 - State RUNNING but LagMax grows → Step 3 (SOURCE_LAG).446 - DLQ filling → Step 4 (SINK_DLQ / SINK_RETRY).447 - `Connection refused` to schema registry → Step 5.448 - `SASL_NOT_LOGGED_IN` / `authorization failed` → Step 6 (IAM_AUTH).449 - `ClassNotFoundException` on creation → Step 7 (PLUGIN_MISSING).450 - `Unknown topic` / wrong bootstrap → Step 8 (CONFIG_ERROR).451 - SMT class in the trace → Step 9 (SMT_ERROR).4522. **Pull CloudWatch Logs.** The exception is often only in logs.4533. **Verify MSK broker health** (`describe-cluster` `State`=ACTIVE).4544. **Verify IAM** (`simulate-principal-policy` on the connector role).4555. **Verify SG egress** from the worker subnet to MSK on 9094.456457If none produces a failing probe, the category is UNKNOWN and the458next step is to enable CloudWatch logging and re-run.459460## Pre-flight safety checks (run before any remediation CLI)461462- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation463 (`update-connector`, `delete-connector`, `create-custom-plugin`,464 `kafka update-configuration`), emit and await operator approval.465- **Never `delete-connector` without first exporting the config.**466 `aws kafkaconnect describe-connector --connector-arn $ARN --output json > backup.json`.467- **Never restart a connector during a rebalance storm.** Wait for468 it to settle, then address the root cause.469- **One category per maintenance window.** Stacking fixes obscures470 which one produced the recovery.471- **Bulk operation safety limit.** Slice a fleet diagnosis into472 batches of at most 3 connectors; emit per-connector REMEDIATION473 and a single CONFIRM per batch.474475## Verdict semantics476477| Verdict | When to emit | Position in workflow |478|---|---|---|479| `ROOT_CAUSE_FOUND` | A failing probe produced positive evidence. | Primary — terminal for actionable findings. |480| `NEED_MORE_INFO` | A required probe is unavailable (no logs, REST API unreachable). | Pre-decision — emit with the specific data gap. |481| `ESCALATE` | AWS Health shows an active MSK or MSK Connect incident. | Pre-decision — surface event ARN; do NOT diagnose connector-level causes. |482483## Recent AWS features (2024-2026)484485Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).486Load on demand to check what changed in the last 24 months.487488## References (load on demand)489490- [references/worked-examples.md](references/worked-examples.md) — secondary worked examples moved from this SKILL.md491- [references/error-handling.md](references/error-handling.md) — data-quality short-circuits moved from this SKILL.md492- [references/diagnostic-commands.md](references/diagnostic-commands.md) — pre-flight data-gathering commands moved from this SKILL.md493- [references/advanced-patterns.md](references/advanced-patterns.md) — Step-0 non-obvious behaviours and recent AWS features moved from this SKILL.md494- [references/msk-connect-config-reference.md](references/msk-connect-config-reference.md) — connector config keys, lifecycle states, and failure modes495496## Domain497498AWS CloudOps / Analytics — Kafka Connect and MSK Connect failure499diagnosis.500501## AWS documentation502503- **Amazon MSK Connect Developer Guide** — https://docs.aws.amazon.com/msk/latest/developerguide/msk-connect.html504- **MSK Connect custom plugins** — https://docs.aws.amazon.com/msk/latest/developerguide/msk-connect-custom-plugins.html505- **Amazon MSK IAM access control** — https://docs.aws.amazon.com/msk/latest/developerguide/iam-access-control.html506- **Apache Kafka Connect documentation** — https://kafka.apache.org/documentation/#connect507- **Confluent Schema Registry** — https://docs.confluent.io/platform/current/schema-registry/index.html508- **AWS Glue Schema Registry** — https://docs.aws.amazon.com/glue/latest/dg/schema-registry.html509- **Debezium documentation** — https://debezium.io/documentation/510- **Kafka Connect REST API** — https://kafka.apache.org/documentation/#connect_rest511- **AWS Health** — https://health.aws.amazon.com/health/status512