airflow mounting step

Because python2.7 various versions of the question, so the final use python3.6

1, download anaconda3
2, creating a virtual environment by Conda
3, according to official documents Quick Start airflow, deployment demo
     document URL: http://airflow.apache.org/start.html

- storing data from sqlite become mysql
4, install mysql
     document URL: https://dinfratechsource.com/2018/11/10/how-to-install-latest-mysql-5-7-21-on-rhel -centos-7 /

5, set the mysql 

under a. In the my.cnf [mysqld], was added. 1 = explicit_defaults_for_timestamp
B. airflow to create a library in mysql

6, modify the airflow of airflow.cfg documents refer to the official documentation Initializing a Database Backend
      document URL: http://airflow.apache.org/howto/initialize-database.html

Primarily relates to two points:
A Review airflow.cfg file executor, its value is modified LocalExecutor.
B airflow.cfg modified file sql_alchemy_conn,.
   To modify the value mysql + pymysql: // username: password @ ip: port / airflow

7, start airflow

Guess you like

Origin www.cnblogs.com/lt1548748657/p/11319302.html