GithubHelp home page GithubHelp logo

7574-spark's Introduction

Trabajo práctico final de Sistemas Distribuidos I (7574)

Requerimientos

  • Docker & docker-compose
  • Python3

Ejemplos

Primero clonar el proyecto:

  • git clone https://github.com/gguzelj/7574-spark.git
  • cd 7574-spark

Luego levantar cluster de spark con dos workers

  • docker-compose -f examples/docker-compose-two-workers.yml up

Bible count

  • docker exec -it examples_master_1 bin/spark-submit /application/simple-count.py
  • head examples/results/bible_count/part-00000

Co-occurrences

  • docker exec -it examples_master_1 bin/spark-submit /application/co-occurrence.py

Top-Selled

  • docker exec -it examples_master_1 bin/spark-submit /application/top-selled.py
  • head examples/results/top-selled/part-00000

View Results

El siguiente programa permite visualizar los resultados del job de co-occurrencias. Permite la busqueda de resultados tanto por id como por descripción de producto

  • python examples/application/show_results.py
python3 examples/application/show_results.py
Ver resultados co-ocurrencias (exit para salir)

Ingrese un id de producto: 	24852
Banana [24852]:
	2216 - Organic Avocado
	2174 - Organic Strawberries
	2158 - Large Lemon
	2000 - Organic Baby Spinach
	1948 - Strawberries
	1331 - Limes
	1231 - Honeycrisp Apple
	1210 - Organic Fuji Apple
	1162 - Seedless Red Grapes
	1071 - Yellow Onions

7574-spark's People

Contributors

gguzelj avatar

Stargazers

Mariano Mendez avatar

Watchers

 avatar Mariano Mendez 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.