Airflow 单机搭建
Airflow 是基于 Python 的,就是 Python 中的一个包。安装要求 Python3.6 版本之上,Metadata DataBase 支持 PostgreSQL9.6+,MySQL5.7+,SQLLite3.15.0+。
一、安装 Anconda 及 python3.7
1、官网下载 Anconda ,选择 linux 版本,并安装
下载官网地址:https://www.anaconda.com/products/individual#macos

2、将下载好的 anconda 安装包上传至 mynode4 节点,进行安装
sh Anaconda3-2020.02-Linux-x86_64.sh 【一路回车即可】Do you accept the license terms? [yes|no]Yes【继续回车】... ...Anaconda3 will now be installed into this location:/root/anaconda3- Press ENTER to confirm the location- Press CTRL-C to abort the installation- Or specify a different location below[/root/anaconda3] >>> 【回车即可,安装到/root/anaconda3路径下】... ...Do you wish the installer to initialize Anaconda3by running conda init? [yes|no][no] >>>yes【输入yes,回车即可】... ...【安装完成】
复制代码
3、配置 Anconda 的环境变量
在 /etc/profile中加入以下语句:export PATH=$PATH:/root/anaconda3/bin

本文详细介绍了如何在Linux环境中使用Anconda安装Python3.7,并通过conda创建和激活Python环境。然后,文章讲解了安装Airflow所需系统依赖,配置MySQL数据库以供Airflow使用,以及安装和初始化Airflow的过程。最后,文章阐述了启动Airflow的webserver和scheduler的步骤,并创建了管理员用户。
最低0.47元/天 解锁文章
484

被折叠的 条评论
为什么被折叠?



