AI Agent Hub
Back to skills
Flink Real-Time Data Warehouse Guide icon

Flink Real-Time Data Warehouse Guide

Data Analysis Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_69009747/flink-real-time-warehouse according to https://skillhub.cn/install/skillhub.md.

About this skill

Real-time warehouse projects often struggle less with individual tools and more with the connections between them: how MySQL changes reach the lake, how ODS through ADS are layered, whether stream and batch jobs can share one logic, and which production parameters matter. This skill organizes those questions into a repeatable engineering path.

Problem

  • Ingestion: Move incremental MySQL changes into lake tables instead of only showing static ETL examples.
  • Modeling: Define responsibilities, storage formats, and update cadences for ODS, DWD, DWS, and ADS.
  • Stream-batch unification: Use Flink Materialized Tables to reduce the cost of maintaining separate real-time and batch SQL.
  • Tuning: Provide a parameter checklist and common pitfalls before production deployment.

How it works

The skill uses Docker Compose to connect MySQL -> Kafka -> Flink -> Paimon -> StarRocks. The core path is to subscribe to MySQL binlog with Flink CDC, write changes into a Paimon ODS table, then build DWD and DWS using primary-key or aggregation tables. ADS targets query and business reporting and can be served by StarRocks or Doris. The package includes Flink SQL templates, CDC configuration, layering rules, materialized table syntax, tuning guidance, and interview QA. Materialized Tables require Flink 1.20+ and can switch between real-time refresh and batch backfill via FRESHNESS.

Boundaries

Local Paimon is best for development and testing; production should usually use HDFS or S3. Confirm that MySQL uses binlog_format=ROW and that the host has enough CPU, memory, disk, and Docker readiness.

Use Cases

  • Stand up a MySQL, Kafka, Flink, Paimon, and StarRocks pipeline with Docker Compose and verify services.
  • Write MySQL order-table changes into a Paimon ODS table via Flink CDC and debug binlog sync issues.
  • Build real-time ODS, DWD, DWS, and ADS tables to power a dashboard showing order volume.
  • Use Flink Materialized Tables to switch between real-time refresh and overnight batch backfill.

Best For

  • Big data engineers who need a reproducible Flink real-time warehouse path and production tuning guidance.
  • Data warehouse developers who need MySQL ingestion and ODS-to-ADS layered modeling.
  • Backend engineers moving into data who need to understand CDC, Paimon, and StarRocks roles.
  • Interview candidates who need Flink high-frequency questions, materialized tables, and stream-batch cases.