Giter Club home page Giter Club logo

spark_project's Introduction

SPARK PROJECT

Submission By: Abhinandan Aryal & Kassem Bou Zeid

The assignment was to perform several analysis on NYC Taxi dataset using spark. For this purpose, GCP was used and a cluster was made to run the analysis.

CLONING THE PROJECT

The project can be cloned using the link provided in the clone option. After that following steps need to be taken to run the project for the linux environment as our environment was LINUX.

INSTALLING GCLOUD CLI

  1. Download the CLI
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-441.0.0-linux-x86_64.tar.gz
  1. Unzipping the File
tar -xf google-cloud-cli-441.0.0-linux-x86_64.tar.gz
  1. Installing the CLI
./google-cloud-sdk/install.sh
  1. Initialize the CLI
./google-cloud-sdk/bin/gcloud init

CREATING THE CLUSTER

A cluster was created in GCP to run the analysis using the following command:

make create_cluster

RUNNING THE JOBS

The jobs are organized inside the src/jobs folder. Each job has its own folder. For running each job, we changed the job name in the .env file and used make to submit the job to GCP using the following command.

make submit_job

VIEWING THE RESULTS

After each job is run, the results are stored in the bucket pyspark-tutorial-abhinandan-aryal. The results are stored as per the task number. The number in front of the results refer to the task number in the following order.

  1. Trip Analysis
  2. Tip Analysis
  3. Fare Analysis
  4. Traffic Analysis
  5. Prediction Job

Multiple files are stored as results for each job to ensure the intermediate results as per necessity.

spark_project's People

Contributors

anudwigna avatar

Watchers

 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.