ambari2.7.3(hdp3.1) 安装 airflow1.10
ambari的hdp中原生不支持airflow安装,下面介绍如何通过mpack方式使ambari支持airflow安装:
1 下载
# wget https://github.com/miho120/ambari-airflow-mpack/raw/master/airflow-service-mpack.tar.gz
2 安装
# ambari-server install-mpack --mpack airflow-service-mpack.tar.gz --verbose
3 重启
# ambari-server restart
4 ambari页面没有出现ambari,检查mpack.json
/var/lib/ambari-server/resources/mpacks/airflow-ambari-mpack-1.5.4/mpack.json
"service_versions_map": [
{
"service_name" : "AIRFLOW",
"service_version" : "1.10.0",
"applicable_stacks" : [
{
"stack_name" : "HDP",
"stack_version" : "2.4"
},
{
"stack_name" : "HDP",
"stack_version" : "2.5"
},
{
"stack_name" : "HDP",
"stack_version" : "2.6"
},
{
"stack_name" : "HDP",
"stack_version" : "3.0"
}
]
}
]
需要增加HDP3.1,修改完重新打包
4 卸载
ambari-server uninstall-mpack --mpack-name=airflow-ambari-mpack
5 安装(同上)
6 重启(同上)
打开ambari页面
参考:
https://github.com/miho120/ambari-airflow-mpack
原文地址:https://www.cnblogs.com/barneywill/p/10284804.html