Coder Social home page Coder Social logo

adarsh-hota / etl_spark-on-dataproc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 47.45 MB

A Pyspark project that performs ETL on a Dataproc cluster and writes data to Google Cloud Storage/BigQuery.

Jupyter Notebook 84.92% Python 15.08%
bigquery dataproc google-cloud-storage jupyter-notebook pyspark spark spark-sql

etl_spark-on-dataproc's Introduction

Overview

A simple Spark project that uses Pyspark to extract data from the NYC taxi dataset, perform some transformations and store the data in GCS/BigQuery.

The python notebook present in the notebooks folder can be executed locally in a Jupyter notebook. After running, the data is stored in the 'result' folder.

In the code folder, two python files run on a GCP Dataproc cluster. One of the files stores the data in Cloud Storage while the other file stores it in BigQuery.

Setup

  • GCP Compute Engine VM

    • Instance configuration
      • Machine type: e2-standard-4
      • Boot disk image: ubuntu-2004-focal-v20230918
      • Boot disk size: 30 GB
      • Boot disk type: Balanced persistent disk
    • Environment configuration
      • Spark: 3.5.0
      • Scala: 2.13.8
      • Jupyter Notebook: 6.5.4
      • Conda: 23.7.4
      • Python: 3.11.5
      • openjdk: 11.0.21
      • OpenJDK Runtime Environment: 11.0.21+9-post-Ubuntu-0ubuntu120.04
      • OpenJDK 64-Bit Server VM: 11.0.21+9-post-Ubuntu-0ubuntu120.04
  • Dataproc Cluster configuration

    • Image version: 2.1.35-debian11
    • Master node: Standard (1 master, N workers)
      • Machine type: e2-standard-2
      • Number of GPUs: 0
      • Primary disk type: pd-standard
      • Primary disk size: 500GB
      • Local SSDs: 0
    • Worker nodes: 2
      • Machine type: n2-standard-4
      • Number of GPUs: 0
      • Primary disk type: pd-standard
      • Primary disk size: 500GB
      • Local SSDs: 0

Data Source

NYC Taxi & Limousine Commission website - https://www.nyc.gov/site/tlc/about/tlc-trip-record-data.page

etl_spark-on-dataproc's People

Contributors

adarsh-hota 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.