Giter Club home page Giter Club logo

kafka-connect-elasticsearch-1's Introduction

Kafka Connect Elasticsearch

Stream data from Apache Kafka to Elasticsearch using Kafka Connect.

Usage

  1. Install Elasticsearch 2.3.3

    cd elasticsearch-2.3.3
    bin/elasticsearch
  2. Install Confluent Platform 2.0.1

    cd confluent-2.0.1
    terminal 1
    /bin/zookeeper-server-start ./etc/kafka/zookeeper.properties
    terminal 2
    /bin/kafka-server-start ./etc/kafka/server.properties
  3. Clone this project and build

    git clone https://github.com/yuzutech/kafka-connect-elasticsearch.git
    cd kafka-connect-elasticsearch
    mvn clean package
  4. Export CLASSPATH and launch Kafka connect in standalone mode

    export CLASSPATH=/path/to/kafka-connect-elasticsearch/workspace/target/kafka-connect-elasticsearch-all.jar
    cd confluent-2.0.1
    cp /path/to/kafka-connect-elasticsearch/workspace/samples/config/standalone.properties .
    cp /path/to/kafka-connect-elasticsearch/workspace/samples/config/connector.properties .
    bin/connect-standalone standalone.properties connector.properties
  5. Start Kafka REST Proxy

    terminal 3
    bin/kafka-rest-start
  6. Produce JSON messages

    curl -X POST -H "Content-Type: application/vnd.kafka.json.v1+json" \
          --data '{"records":[{"value":{"foo":"bar"}}]}' "http://localhost:8082/topics/baz"
  7. View your data in Elasticsearch!

    curl -XGET http://localhost:9200/qux/_search

kafka-connect-elasticsearch-1's People

Contributors

ggrossetie avatar

Watchers

James Cloos avatar Rajasekhar Balusupati 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.