GithubHelp home page GithubHelp logo

tchataigner / bacalhau-airflow-provider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enricorotundo/bacalhau-airflow-provider

0.0 1.0 0.0 49 KB

An Apache Airflow Provider for Bacalhau (a Compute over Data framework)

Home Page: https://github.com/filecoin-project/bacalhau

Python 87.36% Rust 11.61% Dockerfile 1.03%

bacalhau-airflow-provider's Introduction

Bacalhau Airflow Provider

๐Ÿšง This repo is meant for demoing purposes - don't use in production.

Inspired by the dbt-Airflow provider, this is an exploratory effort for adding pipelines to bacalhau. Find the related design doc here.

Tested on Bacalhau version >= v0.3.6.

Pre-requistes

Install Airflow:

conda create --name bacalhau python=3.9

conda activate bacalhau

AIRFLOW_VERSION=2.4.1
PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"

export AIRFLOW_HOME=~/airflow
airflow db init

To install this provider we need to place it within the AIRFLOW_HOME/dags folder:

git clone https://github.com/enricorotundo/bacalhau-airflow-provider.git
ln -s <PATH_TO_THIS_REPO>/bacalhau-airflow-provider/ ${AIRFLOW_HOME}/dags

Launch Airflow UI

In a separate terminal:

export AIRFLOW_HOME=~/airflow
airflow standalone

Run pipelines

airflow dags test bacalhau-image-processing
airflow dags test bacalhau-integer-sum

Head over to http://0.0.0.0:8080 to inspect the running dags.

Questions?

If you have any questions or feedback, please reach out to enricorotundo on the #bacalhau channel in Filecoin Slack.

bacalhau-airflow-provider's People

Contributors

enricorotundo avatar

Watchers

James Cloos 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.