-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9e46e9
commit 62b31d5
Showing
6 changed files
with
89 additions
and
47 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
docs/en/connector-v2/formats/kafka-compatible-kafkaconnect-json.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Kafka source compatible kafka-connect-json | ||
|
||
Seatunnel connector kafka supports parsing data extracted through kafka connect source, especially data extracted from kafka connect jdbc and kafka connect debezium | ||
|
||
# How to use | ||
|
||
## Kafka output to mysql | ||
|
||
```bash | ||
env { | ||
execution.parallelism = 1 | ||
job.mode = "BATCH" | ||
} | ||
|
||
source { | ||
Kafka { | ||
bootstrap.servers = "localhost:9092" | ||
topic = "jdbc_source_record" | ||
result_table_name = "kafka_table" | ||
start_mode = earliest | ||
schema = { | ||
fields { | ||
id = "int" | ||
name = "string" | ||
description = "string" | ||
weight = "string" | ||
} | ||
}, | ||
format = COMPATIBLE_KAFKA_CONNECT_JSON | ||
from_debezium_record = false | ||
} | ||
} | ||
|
||
|
||
sink { | ||
Jdbc { | ||
driver = com.mysql.cj.jdbc.Driver | ||
url = "jdbc:mysql://localhost:3306/seatunnel" | ||
user = st_user | ||
password = seatunnel | ||
generate_sink_sql = true | ||
database = seatunnel | ||
table = jdbc_sink | ||
primary_keys = ["id"] | ||
} | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,4 @@ public enum MessageFormat { | |
DEBEZIUM_JSON, | ||
COMPATIBLE_DEBEZIUM_JSON, | ||
COMPATIBLE_KAFKA_CONNECT_JSON | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters