Giter Site home page Giter Site logo

wikiflow's Introduction

Forked version of Spark flow on top of the Wikipedia SSE Stream

AnalyticsConsumer was updated:

  1. Parses consumed messages.
  2. Counts users and topics on a sliding time window with watermark.
  3. Prints the aggregate to console and saves it to delta file.

How-to run

  • Create the docker network:
make create-network
  • Run the streaming appliance
make run-appliance
  • To run streaming consumption of data via legacy API (DStreams), please run:
make run-legacy-consumer
  • To run streaming consumption of data via structured API, please run:
make run-structured-consumer
  • To run streaming consumption of data via structured API with write to delta, please run:
make run-analytics-consumer

You could also access the SparkUI for this Job at http://localhost:4040/jobs

Known issues

  • Sometimes you need to increase docker memory limit for your machine (for Mac it's 2.0GB by default).
  • To debug memory usage and status of the containers, please use this command:
docker stats
  • Sometimes docker couldn't gracefully stop the consuming applications, please use this command in case if container hangs:
docker-compose -f <name of compose file with the job>.yaml down

wikiflow's People

Contributors

oguseynov avatar renardeinside 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.