Giter Club home page Giter Club logo

prestacop's Introduction

PRESTACOP PROJECT

4 IABD Baptiste Fauvert, Amine Faiz, Victor Meyer

Simulation de communication entre des drônes et la NYPD.

Important

L'infrastructure du projet est dockerisée, ainsi que la simulation des drônes et le gestionnaire de records. Mais le gestionnaire des alertes et le module de statistiques n'ont pas marché sur docker pour cause de problème de mémoire. Vous pouvez activer la dockeristaion en décommentant les lignes du docker-compose.yaml

Nous ne garantissons pas un bon fonctionement de ces composants car nous n'avons pas pu les tester.

Prérequis

  1. Renommer tous les "debian" par le nom de votre machine dans votre réseau:
  • drones/conf/configuration.json -> kafkaHost
  • alertManager/conf/configuration.json -> kafkaHost
  • nypdCsvReader/conf/configuration.json -> kafkaHost
  • recordManager/conf/configuration.json -> kafkaHost, MongoUrl
  • recordManager/Dockerfile -> SPARK_MASTER_NAME
  • docker-compose.yml -> *
  1. Compiler les jar

    cd recordManager

    sbt clean assembly

    cd alertManager

    sbt clean assembly

    cd statistics

    sbt clean assembly

Configuration simulation

Pour modifier le nombre de drones:

  • drones/conf/configuration.json -> nbDrones

Lancement

sudo docker-compose up

# lancement gestionnaire alertes
spark-submit --class com.prestacop.project.Main alertManager/target/scala-2.11/alertManager-assembly-0.1.jar alertManager/conf/configuration.json

# lancement statistiques
spark-submit --class com.prestacop.project.Main statistics/target/scala-2.11/statistics-assembly-0.1.jar

Monitoring spark

http://localhost:8080/

Accès à MongoDB

Si vous avez mongodb en local

mongo

sinon

sudo docker exec -it {mongo_conteneur_id} mongo

Insertion CSV NYPD

  • modifier csvPath de nypdCsvReader/conf/configuration.json

    cd nypdCsvReader

    sbt "run conf/configuration.json"

prestacop's People

Watchers

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