Giter Site home page Giter Site logo

flinkvehicletelematics's Introduction

Limited program of Flink using Java 8 and maven 3.7 to detect vehicles illegal speed and movements. The data is obtained by reading a file. Small sample in the traffic_data file.

Requirements

Standalone version

  • flink >= 1.3.2
  • java >= 1.8
  • maven >= 3.7.0

Docker version

  • docker >= 17.09.1-ce

Tested with ubuntu 16.04

Steps to use

Standalone

  • Start flink process: i.e. /opt/flink-1.3.2/bin/start-cluster.sh
  • Compile the source code: mvn clean install
  • Run processes:
    • mvn exec:java -Dexec.mainClass="master2017.flink.VehicleTelematics" input_file_path output_file_path

Docker

  • Move to the repository folder: cd FlinkVehicleTelematics
  • Build the custom image: sudo docker build -t ubuntu-flink .
    • You can use other images (with docker pull) such as the official one
  • Start the container: sudo docker run -it --rm -v $(pwd):/home/dev -p 8081:8081 ubuntu-flink
  • Create the jar file: mvn clean package -Pbuild-jar
  • Run the command inside the container (flink cluster is already running):
    • flink run -p 10 -c master2017.flink.VehicleTelematics target/FlinkVehicleTelematics-1.0-SNAPSHOT.jar traffic_data traffic_output

Development

Check the official docs about the API

https://ci.apache.org/projects/flink/flink-docs-release-1.3/dev/datastream_api.html

flinkvehicletelematics's People

Contributors

marcosbernal avatar rusiano avatar belusmor avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  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.