Skip to content

Instantly share code, notes, and snippets.

View rssanders3's full-sized avatar
πŸƒβ€β™‚οΈ

Robert Sanders rssanders3

πŸƒβ€β™‚οΈ
View GitHub Profile
cd /tmp/
wget https://github.com/apache/airflow/archive/{AIRFLOW_VERSION}.zip
#Example: "wget https://github.com/apache/airflow/archive/1.8.0.zip"
cd {AIRFLOW_HOME}
mkdir dags
mkdir logs
mkdir plugins
yum -y groupinstall "Development tools"
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel python-devel wget cyrus-sasl-devel.x86_64 unzip
[core]
# Secret key to save connection passwords in the db
fernet_key = {FERNET_KEY}
pip install cryptography
python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
[celery]
# Default queue that tasks get assigned to and that worker listen on.
default_queue = {YOUR_QUEUE_NAME_HERE}
[celery]
# Another key Celery setting
celery_result_backend = db+mysql://{USERNAME}:{PASSWORD}@{MYSQL_HOST}:3306/airflow
[celery]
# The Celery broker URL. Celery supports RabbitMQ, Redis and experimentally
# a sqlalchemy database. Refer to the Celery documentation for more
# information.
broker_url = sqs://{ACCESS_KEY_ID}:{SECRET_KEY}@
# Note: You will also need to install boto:
$ pip install -U boto
[celery]
# The Celery broker URL. Celery supports RabbitMQ, Redis and experimentally
# a sqlalchemy database. Refer to the Celery documentation for more
# information.
broker_url = amqp://guest:guest@{RABBITMQ_HOST}:5672/