简体   繁体   中英

how to create multiple topics and multiple table in kafka in jdbc connector?

i tried to install kafka connect in command prompt .

i have a connector look like this

name=test-source-oracle-jdbc

connector.class=io.confluent.connect.jdbc.JdbcSourceConnector

tasks.max=1
connection.url=jdbc:oracle:thin:@172.26.70.84:1621/OPICSDEV

connection.user=KFK_USER

connection.password=kafka_user012345

mode=bulk

topic.prefix=opics-demo

query=select * from OPICS.cust where rownum < 5

poll.interval.ms=900000

If you want to read from multiple tables, you'll need to run multiple connectors at the same time.

Similarly, different topic prefixes could be provided as well within different Connector properties

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM