Giter Site home page Giter Site logo

gizm00 / oreilly_dataeng_book Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 2.0 86 KB

Cost effective data pipelines code repository

Home Page: https://learning.oreilly.com/library/view/cost-effective-data-pipelines/9781492098638/

Python 28.79% Jupyter Notebook 71.13% Dockerfile 0.08%
aws cloud-cost-efficiency data-pipeline data-pipeline-building data-pipeline-development gcp spark

oreilly_dataeng_book's Introduction

Cost Effective Data Pipelines example code repository

This repo contains code examples for Cost Effective Data Pipelines Available for purchase wherever books are sold including:

Please send any comments, concerns, or problems to [email protected]

Environment setup

  1. Install pyenv
  2. Install pyenv-virtualenv
  3. Install python 3.8.5
    pyenv install 3.8.5
  4. Create virtualenv
    pyenv virtualenv 3.8.5 oreilly-book
  5. Activate the virtual environment
    pyenv activate oreilly-book
  6. Clone this repo
    git clone [email protected]:gizm00/oreilly_dataeng_book.git
  7. cd oreilly_dataeng_book
  8. pip install wheel
  9. Install dependencies
    python -m pip install -r requirements.txt

Running Spark locally

(based on these instructions)
Within the virtualenv created above run the following:

  1. Download apache-spark This material was developed using spark 3.2.1 with hadoop 3.2
  2. Move the tgz file to a place you will refer to it from, i.e. ~/Development/
  3. tar -xvf ~/Development/spark-3.2.1-bin-hadoop3.2.tgz
  4. Add the following to your shell startup file, for example ~/.bash_profile:
export SPARK_HOME="/User/sev/Development/spark-3.2.1-bin-hadoop3.2"
export PATH="$SPARK_HOME/bin:$PATH"
  1. source ~/.bash_profile
  2. pyspark

If you use the VSCode IDE on OSX, you can run pyspark notebooks with these instructions

  • When you start the notebook in VS Code choose the oreilly-book venv as the python interpreter path

oreilly_dataeng_book's People

Contributors

gizm00 avatar

Stargazers

Miguel Hernandez-Cabrera avatar Sean Coyne avatar Hiroshi Tanaka avatar javaamtho|pg avatar  avatar  avatar Brendan Murphy avatar Thomas Gremm avatar  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.