Code Monkey home page Code Monkey logo

dagster_clickhouse_dbt's Introduction

dagster_github_metrics

Integrate dbt and clickhouse with dagster.It a continue of the previous project "clickhouse-dbt". In this project dagster is used to orchestrate the data pipeline.

The pipeline fetches csv data files from s3 buckets and stores those files in local filesystem. Once the files are downloaded we extract the data from csv files and load them to clickhouse-server raw database (rz_github_metrics).

After the data is loaded to raw zone, transformation pipeline executes dbt_project and transforms the data and load the transformed data into standard transformed zone (sz_github_metrics).

Workflow diagram

Architecture Diagram

Pipeline diagram

Architecture Diagram

Requirements

Name Version
docker >= 20
docker-compose >= 2
virtualenv >= 20

NOTE : Before running this project. The clickhouse-server should be up and running from this project "clickhouse-dbt". Also, all of the migrations should be executed, but the data loading part is skipped since the loading and transformation of the data will be orchestrated by dagster.

Getting started

First, install your Dagster code location as a Python package. By using the --editable flag, pip will install your Python package in "editable mode" so that as you develop, local code changes will automatically apply.

make dagster-env

# Make local env ready to run dagster project.

This will create a virtualenv with all of the required dependencies installed and ready to run dagster locally.

Then make a copy of .env.example file to .env and update the credentials accordingly.

After that, start the Dagster UI web server:

make dagster-dev

# Run dagster server.

Open http://localhost:3000 with your browser to see the project.

Navigate to assets and materialize the assets.

Deploy on Dagster Cloud

The easiest way to deploy your Dagster project is to use Dagster Cloud.

Check out the Dagster Cloud Documentation to learn more.

Additional Pipeline diagram

Architecture Diagram Architecture Diagram

dagster_clickhouse_dbt's People

Contributors

kushalkhadka7 avatar

Stargazers

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