Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 2.67 KB

README.md

File metadata and controls

65 lines (42 loc) · 2.67 KB

Peaceland Profile

Peaceland is a full project made with scala, spark, kafka, node and react to design a big data architecture.

Our choices led us to the following architecture:

Architecture

Module List

Root

  • architecture.png is our architecture solution for Peaceland project.
  • subject.pdf contains the details of the Peaceland project.

First presentation

  • first_presentation/report.* contains our detailed answers to the four questions asked;
  • first_presentation/spark_soutenance_intermediaire.pdf contains our slides for the presentation, as well as our architecture blueprint;

Alert Screen

  • alert_screen/ contains the front end that peacekeepers use to see alerts

Alert Consumer

  • alert_consumer/ contains the module for the consumer that reads over a Kafka stream of peacewatcher reports and sends the ones with low peacescores on the alert stream

Analytics

  • analytics/ contains the module that downloads data from AWS S3, and then computes analytics to answer the following questions:
    1. Days of the week with the most pissed off people
    2. Number of agitated person per words heard
    3. Agitation per peacewatcher id
    4. Agitation per location
    5. Agitation per hour

Consumer API

  • api_consumer/ contains the module that reads the alert stream and hooks its data to both a Discord and an API endpoint

Peacewatcher Simulator

  • peacewatcher_simulator/ contains the module for the producer that generates reports and put them on the Kafka stream of peacewatcher reports

Archives store

  • archives_store/ contains the module for the consumer that reads a batch of messages on the Kafka stream of peacewatcher reports, and aggregate them into a single object file, which is then put on AWS S3

Usage

  1. Launch your zookeeper server
  2. Launch your kafka server
  3. Launch the alert_consumer module using sbt "project alert_consumer" "run"
  4. Launch the archives_store module using sbt "project archives_store" "run"
  5. Launch the api_consumer module using npm i to install dependencies and start in one terminal node consumer.js and in another node redirect_server.js
  6. Launch the analytics module using sbt "project analytics" "run"
  7. Launch the alert_screen front end using npm i && npm start
  8. Launch the peacewatcher_simulator using sbt "peacewatcher_simulator" "run"

The_Peacecorp