GithubHelp home page GithubHelp logo

chriscamplejohn / streaming-visualization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jgraham0325/streaming-visualization

0.0 1.0 0.0 8.49 MB

Demonstration of visualizing streaming data

License: MIT License

JavaScript 91.99% CSS 1.59% HTML 6.43%

streaming-visualization's Introduction

Streaming Visualization Demo

0. Prerequisites

  • Node: >= 11.11.0
  • NPM: >= 6.7.0
  • Docker

1. Initial Setup

Setup Kafka with topic

docker run -d -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=127.0.0.1 --env ADVERTISED_PORT=9092 spotify/kafka
docker ps -a
//find the container id of Kafka and substitute it in below
docker exec -i -t <ID> /bin/bash
--create new topic
/opt/kafka_2.11-0.10.1.0/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test3

Setup Redis

docker run -d -p 6379:6379 redis

Get libraries

npm install

2. Running this web app (from root project directory)

node server.js

3. Generate data

Run Spark Streaming Datagenerator and Spark Streaming Processor jobs to generate data with classifications These are separate projects

Alternatively, just run the included script to simulate this process:

3a. Install redis-cli

Mac (via brew):

brew install redis

Windows: https://github.com/rgl/redis/downloads

Unix:

wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make

3b. Run data generation script (from root of project)

redis-cli < scripts/coords.txt

streaming-visualization's People

Contributors

jgraham0325kainos avatar jgraham0325 avatar

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.