GithubHelp home page GithubHelp logo

riju18 / airflow-data-engineering-with-bigquery-and-dbt Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 725 KB

Fetch Data from a simple csv file, send the data in GCP BigQuery table, run dbt to automate the DWH and run SODA to check Data Quality.

Python 100.00%
apache-airflow bigquery csv dbt python3 soda

airflow-data-engineering-with-bigquery-and-dbt's Introduction

Airflow-data-engineering-with-BigQuery-and-dbt

Fetch Data from a simple csv file, send the data in GCP BigQuery table, run dbt to automate the dwh and run soda to check data quality.

alt retail_data_dag

Get Started

  • create python venv
  • enable it
  • install dependencies from requirements.txt file
  • configure airflow in airflow.cfg
  • create as GCP service account and add a key. also, download the key in json format.

Airflow Webserver

  • In Variable section add the following three varibales
    • gcp_project
    • gcp_bigquery_retail_dataset
    • gcp_account : downloaded json file path
  • In Connection section add a new GCP connection
    • connection name: my_gcp_conn
    • value: downloaded service account json file content

Configure dbt and soda in airflow

  • at the bottom of the dags/data_retail_project.py, modify the bash command with dbt and soda project dir,dbt and soda env from where the dbt and soda will run.

Run

  • airflow webserver
  • airflow scheduler

airflow-data-engineering-with-bigquery-and-dbt's People

Contributors

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