Cómo usar
- Copia el comando y revisa el paquete antes de instalarlo en tu entorno de agente.
- Consulta las herramientas, credenciales y entornos necesarios en el documento original.
- Describe las entradas y el resultado deseado; contrasta la salida con las fuentes.
npx skills add https://github.com/gordonmurray/data-engineering-skills --skill flinkAntes de empezar
- La instalación no incluye suscripción al modelo, cuota API ni permisos sobre tus archivos.
- Las estrellas e instalaciones reflejan actividad, no una prueba independiente de calidad o seguridad.
Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.
Apache Flink Data Streaming Expert
Scope
Production Flink architecture, operations, SQL and DataStream implementation, upgrade planning, and lakehouse streaming integrations.
For table-format internals use the iceberg, paimon, or fluss skills. This skill covers the Flink job and its connectors, not the storage format's own maintenance operations.
Current Facts
- Current Flink line: 2.3.x. Flink 2.3.0 was released June 25, 2026 and is the latest stable release.
- Maintained 2.x patch lines: 2.3.0, 2.2.1, and 2.1.3. The policy is the current and previous minor line, so 2.0.x has dropped out of the main downloads section.
- 1.x maintenance line: 1.20.5, released June 3, 2026, still labelled LTS. Use this as the 1.x migration baseline unless the project is pinned elsewhere.
- Kubernetes Operator: 1.15.0, released May 26, 2026, supporting Flink 2.2.x, 2.1.x, 2.0.x, 1.20.x, and 1.19.x. It does not yet support 2.3.x.
- Flink CDC: 3.6.0, with artifacts for Flink 1.20.x and 2.2.x only. There is no Flink 2.3 CDC artifact yet.
- Tooling constrains version choice, not just recency. 2.3.0 is the newest engine, but the Kubernetes Operator and Flink CDC both top out at 2.2.x. Choose 2.2.x when the deployment needs either of them, and 2.3.x only when it needs neither.
- Java: Flink 2.x requires Java 11+. Java 17 is the practical default for new deployments; Java 21 support is experimental.
Critical 2.x Notes
- DataSet API removed; use DataStream, Table API, or SQL.
- Scala DataStream/DataSet APIs removed from the core distribution.
- SourceFunction/SinkFunction and Sink V1 patterns are obsolete; prefer Source/Sink V2 connectors.
flink-conf.yamlwas replaced by standard YAMLconfig.yamlin Flink 2.x.- Per-job deployment mode was removed; use Application mode or Kubernetes Operator patterns.
- Validate savepoint compatibility carefully before 1.x to 2.x migrations.
Inspect First
Establish before recommending or changing anything:
- The Flink version of the running cluster and of the job's dependencies.
These drift apart more often than users expect.
- Deployment mode: Application, Session, Kubernetes Operator, YARN, or
standalone.
- State backend, checkpoint storage location, and whether a recent savepoint
exists.
- For migrations, the exact source version, every connector version, and
whether the existing savepoint can be restored by the target version.
- For troubleshooting, read real metrics rather than inferring: checkpoint
duration and failure count, backpressure, restart count, state size, and watermark lag.
Decision Rules
- For greenfield work, prefer 2.2.x when the Kubernetes Operator or Flink CDC
is in scope, and 2.3.x only when neither is. Newest is not automatically correct here; check connector and operator support before choosing.
- Enable checkpointing and set explicit checkpoint storage. The default is not
durable across cluster restarts.
- Use savepoints, not checkpoints, for planned upgrades and topology changes.
- Set explicit operator UIDs before the first production deploy. A generated
UID changes when the job graph changes and silently breaks state restore.
- Make event-time assumptions visible: choose watermark strategy and allowed
lateness deliberately, and decide explicitly where late data goes.
- Prefer the Kubernetes Operator for long-running production jobs on Kubernetes.
- Use Iceberg, Paimon, and Fluss connectors only at versions compatible with
the selected Flink line.
Safety
- Take a savepoint before any upgrade, topology change, or parallelism change,
and confirm it completed before stopping the job.
--allowNonRestoredStatesilently discards state for operators missing from
the new job graph. Never pass it to get past a restore failure without first identifying which operator's state is being dropped and confirming that loss is acceptable.
- Do not delete checkpoint or savepoint directories until the replacement job
has run and completed a checkpoint of its own.
- Keep credentials out of
config.yamland job arguments; use platform secrets. - Rescaling and state migration are not free. State the expected downtime
before proposing them for a production job.
Verify
- Confirm the job reaches RUNNING and completes at least one checkpoint after
deployment. A RUNNING job that never checkpoints is not healthy.
- After a restore, check that state size is in the expected range. Near-zero
state after a restore usually means state was silently dropped.
- Compare checkpoint duration, restart count, and backpressure against the
values from before the change.
- For SQL changes, read the
EXPLAINplan before running against production
data.
- Report the Flink version, deployment mode, and which metrics you actually
observed rather than which ones should improve.
Update Checklist
- Recheck Flink downloads for core, CDC, connector, and Kubernetes Operator versions.
- Update Helm/doc URLs when operator versions change.

