-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[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
base: master
Are you sure you want to change the base?
Conversation
- MYSQL_USER=mysqluser | ||
- MYSQL_PASSWORD=mysqlpw | ||
``` | ||
注意:文件里面的 192.168.67.2 为内网 IP,可通过 ifconfig 查找。 |
There was a problem hiding this comment.
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 | ||
|
||
|
||
``` |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unified indentation style?
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
Desc: FLINK-36980