Skip to content

Instantly share code, notes, and snippets.

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

Robert Sanders rssanders3

πŸƒβ€β™‚οΈ
View GitHub Profile
[core]
# Secret key to save connection passwords in the db
fernet_key = {FERNET_KEY}
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
cd {AIRFLOW_HOME}
mkdir dags
mkdir logs
mkdir plugins
cd /tmp/
wget https://github.com/apache/airflow/archive/{AIRFLOW_VERSION}.zip
#Example: "wget https://github.com/apache/airflow/archive/1.8.0.zip"
unzip {AIRFLOW_VERSION}.zip
# This will output extract the contents into: airflow-{AIRFLOW_VERSION}
cd airflow-{AIRFLOW_VERSION}/scripts/systemd/
# Update the contents of the airflow file.
# Set the AIRFLOW_HOME if its anything other then the default
vi airflow
# Copy the airflow property file to the target location
cp airflow /etc/sysconfig/
# Update the contents of the airflow-*.service files
# Set the User and Group values to the user and group you want the airflow service to run as
vi airflow-*.service
# Copy the airflow services files to the target location
cd /opt
sudo wget --no-check-certificate https://www.python.org/ftp/python/3.5.7/Python-3.5.7.tar.xz
tar xf Python-3.5.7.tar.xz
cd Python-3.5.7
./configure --prefix=/usr/local
make && make altinstall
ls -ltr /usr/local/bin/python*
vi ~/.bashrc
apt-get install python-dev libmysqlclient-dev
pip install mysqlclient
yum install -y mysql-devel python-devel python-setuptools
pip install MySQL-python