Skip to content

Instantly share code, notes, and snippets.

@ronaknnathani
Created June 8, 2017 08:33
Show Gist options
  • Save ronaknnathani/877e7423c02283d33be5f78c6d71915b to your computer and use it in GitHub Desktop.
Save ronaknnathani/877e7423c02283d33be5f78c6d71915b to your computer and use it in GitHub Desktop.
#
# Copyright 2016 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# A simple example that copies from a topic to a SQLite database.
# The first few settings are required for all connectors:
# a name, the connector class to run, and the maximum number of tasks to create:
name=redshift-sink
connector.class=io.confluent.connect.jdbc.JdbcSinkConnector
tasks.max=1
# The topics to consume from - required for sink connectors like this one
topics=postgres_users
# Configuration specific to the JDBC sink connector.
# We want to connect to a SQLite database stored in the file test.db and auto-create tables.
connection.url=jdbc:redshift://<REDSHIFT-URL>:5439/kafka?user=<USERNAME>&password=<PASSWORD>
auto.create=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment