大数据调度平台 Airflow(三):Airflow 单机搭建

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

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值