Nagendra Palla
Nagendra Palla

Reputation: 257

Build a pipeline with kafka connect using jdbc connectors for sqlite

I am new to kafka connect, trying to build a pipeline to get data from sqlite to kafka topic.

Upvotes: -1

Views: 996

Answers (1)

Robin Moffatt
Robin Moffatt

Reputation: 32100

Assuming your sqlite DB is at /tmp/test.db then use this config:

{
  "name": "jdbc-source",
  "config": {
    "connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
    "tasks.max": "1",
    "connection.url": "jdbc:sqlite:/tmp/test.db",
    "mode": "incrementing",
    "incrementing.column.name": "id",
    "topic.prefix": "test-sqlite-jdbc-",
    "name": "jdbc-source"
  }
}

For more details, see :

Upvotes: 2

Related Questions