Coder Social home page Coder Social logo

de_e2e's Introduction

Data Engineering with airflow and Kubernetes

Prerequisite

  • Install terraform, this would be used to provision kubernetes cluster, for development we will use a local kubernetes cluster; and we can also use terraform to provision kubernetes cluster in cloud
  • Install a local Kubernetes cluster, here we have used kind
  • Install kubectl and helm if you use a mac you can simply install them using brew install kubectl helm

Setup

For each of them navigate to terraform directory and simply terraform apply

Provision Database

Deploy Data Pipeline

  • Navigate to Data_processing

  • Build the docker image by running

    poetry export -f requirements.txt --output requirements.txt --without-hashes
    docker build -t airflow-custom:latest .
  • Add two env variable

    KAGGLE_USERNAME=<user>
    KAGGLE_KEY=<pass>

    at data_processing/dev.env.list

  • Run docker-compose up it will launch an airflow cluster locally, this will demonstrate a local server you need to configure connectivity to host postgres

  • Alternatively run airflow webserver and navigate to airflow connections and change default postgres as defined here

  • Use password q1w2e3r4

  • You can load the docker image to kind cluster and also deploy the airflow using helm chart. A terraform script is provided here

  • You also need to update the env here

Datapipelines

Productionization

  • How would you package the pipeline code for deployment?
    • Using CI/CD pipeline as a docker image
  • How would you schedule a pipeline that runs the ingestion and the transformation tasks sequentially every day?
    • Using airflow this is demonstrated here
  • How would you ensure the quality of the data generated from the pipeline?

de_e2e's People

Contributors

mdrmuhaimin avatar

Watchers

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