Skip to content

[Flink-36980] [cdc-connect] Build a new introductory practice "Streaming ELT from MySQL to Kafka" #4033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Sukang1002
Copy link

Desc: FLINK-36980

@github-actions github-actions bot added the docs Improvements or additions to documentation label Jun 2, 2025
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
```
注意:文件里面的 192.168.67.2 为内网 IP,可通过 ifconfig 查找。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

192.168.67.2 -> kafka or zookeeper?
In the same docker network, we can use service names to communicate directly

parallelism: 1


```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra blank lines

```yaml
version: '2.1'
services:
Zookeeper:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unified indentation style?

@MOBIN-F
Copy link
Contributor

MOBIN-F commented Jun 3, 2025

Hi @Sukang1002, Thanks for your contribution, I left some comments~


# Streaming ELT from MySQL to Kafka

This tutorial is to show how to quickly build a Streaming ELT job from MySQL to StarRocks using Flink CDC, including the

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This tutorial is to show how to quickly build a Streaming ELT job from MySQL to StarRocks using Flink CDC, including the
This tutorial is to show how to quickly build a Streaming ELT job from MySQL to Kafka using Flink CDC, including the

docker-compose exec mysql mysql -uroot -p123456
```

Then, modify schema and record in MySQL, and the tables of StarRocks will change the same in real time:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be StarRocks?

sink-table: kafka_ods_orders
```

In this way, we can synchronize sharding tables like `app_db.order01`、`app_db.order02`、`app_db.order03` into one kafka_ods_orders tables.By using the built-in tools of kafka, you can view the successful establishment of the corresponding Topic. Data details can be queried using kafka-console-Consumer.sh:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In this way, we can synchronize sharding tables like `app_db.order01``app_db.order02``app_db.order03` into one kafka_ods_orders tables.By using the built-in tools of kafka, you can view the successful establishment of the corresponding Topic. Data details can be queried using kafka-console-Consumer.sh:
In this way, we can synchronize sharding tables like `app_db.order01``app_db.order02``app_db.order03` into one kafka_ods_orders topic. By using the built-in tools of kafka, you can view the successful establishment of the corresponding Topic. Data details can be queried using kafka-console-Consumer.sh:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants