Git Product home page Git Product logo

airflow-essentials's Introduction

Airflow Essentials

Installing Airflow with Docker

  • Build the docker image
docker build -t airflow .
  • Run airflow in a container
docker run -d -p 8080:8080 airflow
  • Run airflow in a container (with mounted volume)
docker run -d -p 8080:8080 \
    -v $(pwd)/mnt/dags:/usr/local/airflow/dags \
    -v $(pwd)/mnt/airflow.cfg:/usr/local/airflow/airflow.cfg airflow

Airflow CLI Commands

# Check for errors in your DAG
python $DAG

# List DAGS
airflow list_dags

# Lists tasks in a DAG
airflow list_tasks $DAG

# Test a DAG (doesn't modify database)
airflow test $DAG $TASK

Installing Airflow with docker-compose

docker-compose up -d

airflow.cfg vs airflow-multinode.cfg

These are the differences between the config files:

  • executor = CeleryExecutor
  • sql_alchemy_conn = postgresql+psycopg2://airflow:airflow@postgres:5432/airflow

Ad-Hoc Queries

SQLite

Connection = /usr/local/airflow/airflow.db

select * from sqlite_master;

Postgres

select * from pg_catalog.pg_tables;

airflow-essentials's People

Contributors

onprema avatar

Stargazers

Rajeshwar Reddy Kadari avatar Simone Colonna avatar Eduardo Rodriguez avatar Krishma Dutta avatar Rhe avatar Periklis Gkolias avatar jason avatar Manish  avatar Vishwas Subramanian avatar  avatar  avatar Deepanshu Lulla avatar

Watchers

James Cloos avatar  avatar  avatar

airflow-essentials's Issues

License?

what's the license for this project? would it be possible to add a LICENSE file?

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.