이 절에서는 에어플로 설정의 기본을 살펴보겠습니다. 그런 다음, 이를 사용하여 예제 프로젝
트를 실행하는 방법을 알아봅니다.
11.6.1
설치 및 초기 설정
아파치 에어플로의 기본 설정은 간단합니다. 맥이나 리눅스를 사용할 때는 다음 명령을 사용하
여 에어플로 데이터의 위치를 정의합니다.
$ export AIRFLOW_HOME=
~/airflow
에어플로의 기본 데이터 폴더를 정의한 후 에어플로를 설치할 수 있습니다.
$
pip install apache-airflow
에어플로는 다양한 데이터베이스 기술로 설치할 수 있습니다. 집필하고 있는 현재 사용 가능한
플러그인의 목록은 포스트그레
SQL
PostgreSQL
, 대스크
Dask
, 셀러리
Celery
및 쿠버네티스 입니다.
에어플로 확장의 전체 목록과 설치 방법은 에어플로 문서(
https
://
oreil
.
ly
/
evVfY
)에서
확인하세요.
에어플로를 설치하면 모든 작업 상태 정보를 저장할 초기 데이터베이스를 만들어야 합니다. 에
어플로는 에어플로 데이터베이스를 초기화하는 명령을 제공합니다.
$
airflow initdb
구성 변경을 하지 않은 상태에서 에어플로를 사용하면, 에어플로가
SQLite
데이터베이스를
인스턴스화합니다. 이 설정은 데모 프로젝트를 실행하고 더 작은 워크플로를 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.