Giter Club home page Giter Club logo

learn-apache-airflow's Introduction

learn-apache-airflow

Apache Airflow 강좌 자료 입니다.

Notice

airflow.cfg 파일에 부분을 꼭 바꾸세요

Installation with standalone

# airflow home directory
export AIRFLOW_HOME=~/airflow

export AIRFLOW_VERSION=2.6.2

# Extract the version of Python you have installed. 
# If you're currently using Python 3.11 you may want to set this manually as noted above, 
# Python 3.11 is not yet supported.
export PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"

export CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
# For example this would install 2.6.2 with python 3.7: https://raw.githubusercontent.com/apache/airflow/constraints-2.6.2/constraints-3.7.txt

pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"

# start airflow
airflow standalone

Installation with Docker compose

https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html

# download docker compose file
curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.6.2/docker-compose.yaml'

# start docker compose
docker compose up

$ docker ps
CONTAINER ID   IMAGE                  COMMAND                  CREATED          STATUS                    PORTS                    NAMES
79157c05cdf7   apache/airflow:2.6.2   "/usr/bin/dumb-init …"   55 seconds ago   Up 34 seconds (healthy)   8080/tcp                 learn-airflow-airflow-scheduler-1
0f0789d0a5bd   apache/airflow:2.6.2   "/usr/bin/dumb-init …"   55 seconds ago   Up 34 seconds (healthy)   8080/tcp                 learn-airflow-airflow-worker-1
4546e6b49cb0   apache/airflow:2.6.2   "/usr/bin/dumb-init …"   55 seconds ago   Up 33 seconds (healthy)   8080/tcp                 learn-airflow-airflow-triggerer-1
0f3f7a8aa00b   apache/airflow:2.6.2   "/usr/bin/dumb-init …"   55 seconds ago   Up 34 seconds (healthy)   0.0.0.0:8080->8080/tcp   learn-airflow-airflow-webserver-1
fd69ee05eaac   postgres:13            "docker-entrypoint.s…"   55 seconds ago   Up 53 seconds (healthy)   5432/tcp                 learn-airflow-postgres-1
ad7584b994c5   redis:latest           "docker-entrypoint.s…"   55 seconds ago   Up 53 seconds (healthy)   6379/tcp                 learn-airflow-redis-1

# credential
username: airflow / password: airflow

learn-apache-airflow's People

Contributors

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