Check out this tutorial on how to get data from Apache Kafka into a database using the JDBC Sink. 该演示基于MySQL,但该连接器适用于具有JDBC驱动程序的任何常见数据库-Oracle,Postgres,MS SQL,DB2等.
涵盖的主题(单击以直接转到该部分):
- Populating some data into a test topic
- Creating the JDBC Sink
- Putting the JDBC driver in the correct place
- JDBC Sink connector in action
- Debugging the JDBC Sink connector
- INSERT vs UPSERT
- Dropping fields, adding metadata
- Evolving the target table schema
- JDBC Sink and schemas
- Working with JSON data and the JDBC Sink
- Applying a schema to JSON data with ksqlDB
- Working with CSV data and the JDBC Sink
You can see the instructions and demo code to try yourself here.
next在评论中留言,提出任何我接下来要解决的有关Kafka Connect问题或连接器的建议:)