Giter VIP home page Giter VIP logo

kafka-connect-kinesis's Introduction

Kafka Connect connector for Amazon Kinesis

Overview

This package offers both Source and Sink Connectors for the Amazon Kinesis data system. Because Kinesis expects ByteStream data, the data conversion between Kafka and Kinesis streams can be a bit tricky. The default for the Sink class is to send the SinkRecord converted with the default valueConverter class. The Source class will attempt to decode the bytestream using the Connect Framework's value conversions. Effectively, this allows Kinesis to be used as an intermediate step in a normal Kafka Connect pipeline.

Kinesis Background

A good overview of Kinesis streams can be found with the AWS documentation. See http://docs.aws.amazon.com/streams/latest/dev/fundamental-stream.html for a tutorial on generating your own stream with some sample data.

Notes on Streams and Topics

The Connector will not automatically create a Kinesis Stream for the Sink, so you should use the AWS tools to properly create one before launching the connector. The Connector will create new Kafka topics as targets for the Source connector if automatic topic creation is enabled on the Kafka brokers.

The best practice is to create both Streams and Topics appropriatedly
before launching the connectors.

Running in development

mvn clean package
export CLASSPATH="$(find target/ -type f -name '*.jar'| grep '\-package' | tr '\n' ':')"
$CONFLUENT_HOME/bin/connect-standalone \
	$CONFLUENT_HOME/etc/schema-registry/connect-avro-standalone.properties \
	[sink | source] -quickstart.properties

A simple script that enables a loopback test is included with this package; see standalone-test .

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.