Skip to content

A sample application which connects with kafka and produces & consumes data, and shows analysis on a dashboard using Django framework

Notifications You must be signed in to change notification settings

samkit5495/kafkaApp

Repository files navigation

kafkaApp

A sample application which connects with kafka and produces & consumes data, and shows analysis on a dashboard using Django framework

Kafka Installation:

Reference : https://www.digitalocean.com/community/tutorials/how-to-install-apache-kafka-on-ubuntu-14-04

Kafka Consumer/Producers:

https://github.com/Parsely/pykafka/blob/master/README.rst http://kafka-python.readthedocs.io/

How to Run Project:

  1. Start Zookeeper
bin/zookeeper-server-start.sh config/zookeeper.properties
  1. Start Kafka Server
nohup ~/kafka/bin/kafka-server-start.sh ~/kafka/config/server.properties > ~/kafka/kafka.log 2>&1 &
  1. Start MongoDB on default port 27017
mongod --dbpath "$PWD"
  1. Setup Virtual Environment
virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt
  1. Start publisher.py
python3 publisher.py
  1. Start consumer.py
python3 consumer.py
  1. Start Django Server
python3 manage.py runserver

Note:

Refer consumer.py for consumer and others tried examples are in consumer folder

About

A sample application which connects with kafka and produces & consumes data, and shows analysis on a dashboard using Django framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published