Coder Social home page Coder Social logo

mahulivishal / flink-alert-overspeed Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 720 KB

This is a PoC to show how alerts can be generated using a stream of data on certain conditions. Here I take the standard example of the Overspeed Alert used in many Vehicles.

Dockerfile 2.04% Java 91.70% Python 6.27%

flink-alert-overspeed's Introduction

flink-alert-overspeed

This is a PoC to show how alerts can be generated using a stream of data on certain conditions. Here I take the standard Overspeed Alert used in many Vehicles.

Steps:

  1. DOWNLOAD AND INSTALL KAFKA: https://kafka.apache.org/quickstart
  2. RUN ZOOKEEPER: bin/zookeeper-server-start.sh config/zookeeper.properties
  3. RUN KAFKA: bin/kafka-server-start.sh config/server.properties
  4. DOWNLOAD FLINK: https://www.apache.org/dyn/closer.lua/flink/flink-1.19.0/flink-1.19.0-bin-scala_2.12.tgz
  5. EXTRACT CONTENT: tar -xzf flink-*.tgz
  6. START FLINK: ./bin/start-cluster.sh
  7. SUBMIT JOB: ./bin/flink run /Users/vishalmahuli/Desktop/vishal-git/flink-alert-overspeed/target/flink-overspeed-1.0-SNAPSHOT.jar
  8. PUSH SPEED DATA TO SOURCE TOPIC: bin/kafka-console-producer.sh --topic over.speed.alert.source.v1 --bootstrap-server localhost:9092, RECORD: {"deviceId":"device_01","speedInKmph":10,"timestamp":1715781422000}
  9. LISTEN ON TO SINK TOPIC FOR ALERT: bin/kafka-console-consumer.sh --topic over.speed.alert.sink.v1 --from-beginning --bootstrap-server localhost:9092

flink-alert-overspeed's People

Contributors

mahulivishal avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

gkviv

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.