Coder Social home page Coder Social logo

kafka-streams-branching.g8's Introduction

A Giter8 template for showcasing branching of an input Kafka topic into multiple output topics based on certain conditions.

Kafka KStream Branching

Steps to install Zookeeper and Apache Kafka:

Step 1: Download Kafka

Download Kafka from here

Step 2: Extract downloaded file

tar -xzvf kafka_2.11-1.0.0.tgz
cd kafka_2.11-1.0.0

Steps to start Zookeeper and Kafka server :

Start Zookeeper:

bin/zookeeper-server-start.sh config/zookeeper.properties

Start Kafka server:

bin/kafka-server-start.sh config/server.properties

Clone Project

sbt new knoldus/kafka-streams-branching.g8
cd kafka-streams-branching
sbt clean compile

Producing tweets from your twitter account into Kafka topic

Step 1: Add your twitter authentication tokens in application.conf.

Step 2: Execute the following command,

bin/activator "run-main com.knoldus.demo.TweetProducer"

This starts fetching tweets and push each of it into a Kafka topic queue.


Processing the incoming tweets

Step 1: Execute the following command,

bin/activator "run-main demo.KStreamDemo"

This begins stream processing on the input kafka topic and based on tha tags, it splits the incoming messages into different output topics.


For any issue please raise a ticket @ Github Issue

Template license

Written in 2017 by Himani Arora

To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this template to the public domain worldwide. This template is distributed without any warranty. See http://creativecommons.org/publicdomain/zero/1.0/.

kafka-streams-branching.g8's People

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.