Giter Club home page Giter Club logo

kafka-connect-redshift's Introduction

Kafka Connect Redshift

Kafka Sink Connector for Amazon Redshift

Build

  • Install the Redshift driver into the local maven repository.
  • mvn package
  • Copy target/kafka-connect-redshift-VERSION-jar-with-dependencies.jar into your classpath.

Configure

  • name - Connector identifier.

  • connector.class - io.tenjin.kafka.connect.redshift.RedshiftSinkConnector

  • tasks.max - Max number of tasks

  • topics - Topics to read from Kafka.

  • temp.output.dir - Output directory to write to the local filesystem.

  • s3.bucket - S3 bucket to stage data for COPY.

  • aws.access.key.id - AWS access key ID.

  • aws.secret.access.key - AWS secret access key.

  • connection.url - Redshift JDBC connection URL. If you're using Amazon's Redshift JDBC Driver, you may want to set OpenSourceSubProtocolOverride=true in case the PostgreSQL driver is on your classpath.

  • table - Redshift destination table name.

  • fields - Field names to send to Redshift. Use * for all fields.

Run

On Confluent Platform:

bin/connect-standalone etc/connect-standalone.properties <path-to-your-connect-redshift.properties> <other-connector.properties> ...

With Kafka only download:

bin/connect-standalone.sh config/connect-standalone.properties <path-to-your-connect-redshift.properties> <other-connector.properties> ...

Known Limitations

  • Untested. => Use at your own risk!
  • Uses the local filesystem. => Make sure you have enough disk space!
  • No WAL, probably doesn't recover well. => Contribute!
  • Only 1 destination table supported.

If you're running the Confluent Platform on Java 8, there is an [issue with Joda Time and hadoop-aws] (JodaOrg/joda-time#288). The workaround is to exclude the share/java/kafka-connect-hdfs/joda-time-1.6.2.jar from the classpath when running the connectors. The newer Joda Time classes should be included in the built jar.

License

Apache v2.0

Contribute

Help me out, please. Thanks!

kafka-connect-redshift's People

Contributors

lepfhty avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.