1.添加服务选择dolphinscheduler
2.dolphinscheduler服务配置
这个选择使用mysql数据作为dolphinscheduler服务的元数据库
3.服务选择进行安装
选择两个DS-master,至少两个DS-ALTERS,DS-APIS,其余节点都部署DS-worker节点
4.如果在安装dolphinscheduler之前做了namenode-ha则可能会报'hue-desktop-ini'相关报错,则需要对params.py脚本进行修改
脚本位置
/var/lib/ambari-server/resources/stacks/HDP/3.3/services/DOLPHINSCHEDULER/package/scripts/params.py
修改内容
#hdfs_httpfs_host = config['configurations']['hue-desktop-ini']['hdfs_httpfs_host']
hdfs_httpfs_host = "dfs_ha_enabled"
注释#hdfs_httpfs_host = config['configurations']['hue-desktop-ini']['hdfs_httpfs_host']
给hdfs_httpfs_host 任意赋值一个参数让下边的webhdfs_url直接取第一个namenode_hosts[0]
修改完之后保存重启ambari-server服务重新安装dolphinscheduler
5.拷贝mysql驱动到所有节点libs目录下
cp /tmp/mysql-connector-j-8.0.33.jar /usr/hdp/current/dolphinscheduler/alert-server/libs/
cp /tmp/mysql-connector-j-8.0.33.jar /usr/hdp/current/dolphinscheduler/api-server/libs/
cp /tmp/mysql-connector-j-8.0.33.jar /usr/hdp/current/dolphinscheduler/master-server/libs/
cp /tmp/mysql-connector-j-8.0.33.jar /usr/hdp/current/dolphinscheduler/worker-server/libs/
cp /tmp/mysql-connector-j-8.0.33.jar /usr/hdp/3.3.1.0-004/dolphinscheduler/tools/libs/
6.因为第二步配置的用户为hdfs用户所以需要将所有服务所属组改为hdfs
/var/log/dolphinscheduler
/usr/hdp/3.3.1.0-004/dolphinscheduler
chown -R hdfs:hdfs dolphinscheduler
修改完之后ambari管理平台上启动dolphinscheduler,启动过程中元数据会自动初始化建表
标签:hdfs,ambari,httpfs,dolphinscheduler,server,mysql,libs,安装 From: https://www.cnblogs.com/whiteY/p/18046586