GithubHelp home page GithubHelp logo

dnguyenngoc / real-time-analytic Goto Github PK

View Code? Open in Web Editor NEW
18.0 0.0 10.0 8.68 MB

This repo gives an introduction to setting up streaming analytics using open source technologies

Home Page: https://dnguyenngoc.github.io/posts/real-time-analytics-airflow-kafka-druid-superset/

Dockerfile 4.65% Python 79.99% Shell 15.35%
real-time analytics superset druid airflow kafka kafka-streams

real-time-analytic's Introduction

Real Time Analytic With Druid - Airflow - Kafka - Superset

Kafka Airflow Druid Redis Posgresql Superset

This repo gives an introduction to setting up streaming analytics using open source technologies. We'll use Apache {Kafka, Superset, Druid, Airflow} to set up a system that allows you to get a deeper understanding of the behaviour of your customers. Apache Druid

Screenshots & Gifs

View System



Contents

Example

1. Install docker and docker-compose

https://www.docker.com/

2. Pull git repo

git clone https://github.com/apot-group/real-time-analytic.git

3. Start Server

cd real-time-analytic && docker-compose up

Service URL User/Password
Druid Unified Console http://localhost:8888/ None
Druid Legacy Console http://localhost:8081/ None
Superset http://localhost:8088/ docker exec -it superset bash superset-init
Airflow http://localhost:3000/ a-airflow/app/standalone_admin_password.txt

3. Create Dashboard sample from druid streaming

  • Airflow dags at a-airflow/app/dags/demo.py each one min sent message to kafka 'demo' topic with data of list coin ['BTC', 'ETH', 'BTT', 'DOT'] the structure of data message like below.
   {
        "data_id" : 454,
        "name": 'BTC',
        "timestamp": '2021-02-05T10:10:01'
    }
  • From druid load data from kafka kafka:9092, choice demo topic and config data result table

  • From superset add druid like database sqlalchemy uri: druid://broker:8082/druid/v2/sql/. more detail at Superset-Database-Connect
  • Create Chart and dashboard on superset from demo table.
  • Enjoy! 🔥 🔥 🔥

Contact Us

real-time-analytic's People

Contributors

dnguyenngoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

real-time-analytic's Issues

DockerHub error "duynguyenngoc/dps-hadoop-airflow:3.3.1"

Hi bác,

Bác viết bài trên Viblo hay quá.
Em đang tính chạy theo mà lại thiếu "duynguyenngoc/dps-hadoop-airflow:3.3.1"

Nhờ bác mở lại Airflow ở trên dockerhub được không ạ?
Cảm ơn bác nhiều

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.