Coder Social home page Coder Social logo

romulovll / pyspark-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imbrito/pyspark-example

0.0 0.0 0.0 19.73 MB

PySpark Analysis from logs of NASA Kennedy Space​​ Center​ na​ Flórida

License: MIT License

Python 88.74% Makefile 11.26%

pyspark-example's Introduction

PySpark Example

Este projeto apresenta uma implementação pyspark resolvendo 5 questões a partir de um arquivo de log.

Fonte​ oficial​​ do​​ dateset: http://ita.ee.lbl.gov/html/contrib/NASA-HTTP.html

  • Jul​ 01​ to Jul​ 31,​ ASCII​ format,​ 20.7​ MB​ gzip compressed​, 205.2​ ​MB.
  • Aug 04 to Aug 31, ASCII format, 21.8 MB gzip compressed, 167.8 MB.

O dataset possui todas as requisições HTTP para o servidor da NASA Kennedy Space​​ Center​ WWW​​ na​ Flórida​​ para​ um​​ período​​ específico.

Os​​ logs​ estão​​ em​​ arquivos​​ ASCII​ com​ uma​ linha​ por​ requisição​ com​ as​​ seguintes​​ colunas:

  • Host: um hostname quando possível, caso contrário o endereço de internet se o nome não​ ​puder​ ​ser​ ​identificado;
  • Timestamp:​ no​ formato​​ "DIA/MÊS/ANO:HH:MM:SS​ ​TIMEZONE";
  • Request​: método HTTP e URL;
  • HTTP Code: código​ ​do​ ​retorno​ ​HTTP;
  • Bytes: total​ de​​ bytes​ retornados.

Setup

  1. Python >= 3.7.1
  2. Virtualenv >= 16.4.3
  3. Wget >= 1.17.1

Deploy

  1. clone o presente repositório: $ git clone [email protected]:imbrito/pyspark-example.git.
  2. acesse a pasta do projeto: $ cd pyspark-example.
  3. faça download dos aqruivos de entrada: $ make wget.
  4. instale as dependências: $ make install.
  5. ative o ambiente: $ source venv/bin/activate.
  6. execute o pipeline: $ python run.py.

pyspark-example's People

Contributors

imbrito 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.