DolphinScheduler搭建

下载安装包

https://www.apache.org/dyn/closer.lua/dolphinscheduler/1.3.6/apache-dolphinscheduler-1.3.6-bin.tar.gz

解压

在这里插入图片描述

mysql操作

将MySQL的驱动包放到该文件下的lib中,其中版本得大于5.1.47

在这里插入图片描述
修改目录权限

在MySQL中建立dolphinscheduler数据库

CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;

在这里插入图片描述

 GRANT ALL PRIVILEGES ON dolphinscheduler.* TO 'root'@'%' IDENTIFIED BY '123456789';
GRANT ALL PRIVILEGES ON dolphinscheduler.* TO 'root'@'localhost' IDENTIFIED BY '123456789';
flush privileges;

在这里插入图片描述
修改配置文件/usr/dolphin/apache-dolphinscheduler-1.3.6-bin/conf/datasource.properties
在这里插入图片描述
将数据库改成mysql
将默认开启的数据库注释并打开下面的mysql配置
在这里插入图片描述
配置以下ip和账号密码
在这里插入图片描述

赋予权限chmod +x script/create-dolphinscheduler.sh
在这里插入图片描述
运行 MySQL 初始化脚本
在这里插入图片描述

报错

在这里插入图片描述

解决办法
查看Value是否为OFF
在这里插入图片描述
如果是OFF执行 SET GLOBAL INNODB_LARGE_PREFIX = ON;
查看Value是否为BARRACUDA
在这里插入图片描述
不是的话执行SET GLOBAL innodb_file_format = BARRACUDA;

在这里插入图片描述
修改一键部署配置文件 /usr/dolphin/apache-dolphinscheduler-1.3.6-bin/conf/configconf/config/install_config.conf
在这里插入图片描述
修改路径为/usr/dolphin/apache-dolphinscheduler-1.3.6-bin/conf/env下的文件
在这里插入图片描述
根据自己情况修改
在这里插入图片描述
将jdk软链到/usr/bin/java下
在这里插入图片描述

照着英文提示来填就行

# NOTICE :  If the following config has special characters in the variable `.*[]^${}\+?|()@#&`, Please escape, for example, `[` escape to `\[`
# postgresql or mysql
dbtype="mysql"

# db config
# db address and port
dbhost="192.168.237.151:3306"

# db username
username="root"

# database name
dbname="dolphinscheduler"

# db passwprd
# NOTICE: if there are special characters, please use the \ to escape, for example, `[` escape to `\[`
password="123456789"

# zk cluster
zkQuorum="192.168.237.149:2181,192.168.237.151:2181,192.168.237.150:2181"

# Note: the target installation path for dolphinscheduler, please not config as the same as the current path (pwd)
installPath="/usr/dolphin/dolphinscheduler"

# deployment user
# Note: the deployment user needs to have sudo privileges and permissions to operate hdfs. If hdfs is enabled, the root directory needs to be created by itself
deployUser="root"


# alert config
# mail server host
mailServerHost="smtp.exmail.qq.com"
# note: Different protocols and encryption methods correspond to different ports, when SSL/TLS is enabled, make sure the port is correct.
mailServerPort="25"
mailSender="xxxxxxxxxx"

# user
mailUser="xxxxxxxxxx"

# sender password
# note: The mail.passwd is email service authorization code, not the email login password.
mailPassword="xxxxxxxxxx"

# TLS mail protocol support
starttlsEnable="true"

# SSL mail protocol support
# only one of TLS and SSL can be in the true state.
sslEnable="false"

#note: sslTrust is the same as mailServerHost
sslTrust="smtp.exmail.qq.com"


# resource storage type: HDFS, S3, NONE
resourceStorageType="HDFS"

# if resourceStorageType is HDFS,defaultFS write namenode address,HA you need to put core-site.xml and hdfs-site.xml in the conf directory.
# if S3,write S3 address,HA,for example :s3a://dolphinscheduler,
# Note,s3 be sure to create the root directory /dolphinscheduler
defaultFS="hdfs://spark01:9000"

# if resourceStorageType is S3, the following three configuration is required, otherwise please ignore
s3Endpoint="http://192.168.xx.xx:9010"
s3AccessKey="xxxxxxxxxx"
s3SecretKey="xxxxxxxxxx"

# if resourcemanager HA is enabled, please set the HA IPs; if resourcemanager is single, keep this value empty
yarnHaIps="192.168.237.149,192.168.237.151,192.168.237.150"

singleYarnIp="yarnIp1"

resourceUploadPath="/dolphinscheduler"

# who have permissions to create directory under HDFS/S3 root path
# Note: if kerberos is enabled, please config hdfsRootUser=
hdfsRootUser="root"

# kerberos config
# whether kerberos starts, if kerberos starts, following four items need to config, otherwise please ignore
kerberosStartUp="false"
# kdc krb5 config file path
krb5ConfPath="$installPath/conf/krb5.conf"
# keytab username
keytabUserName="hdfs-mycluster@ESZ.COM"
# username keytab path
keytabPath="$installPath/conf/hdfs.headless.keytab"


# api server port
apiServerPort="12345"


# install hosts
# Note: install the scheduled hostname list. If it is pseudo-distributed, just write a pseudo-distributed hostname
ips="spark01,spark02,spark03"

# ssh port, default 22
# Note: if ssh port is not default, modify here
sshPort="22"

# run master machine
# Note: list of hosts hostname for deploying master
masters="spark01,spark02"

# run worker machine
# note: need to write the worker group name of each worker, the default value is "default"
workers="spark01:default,spark02:default,spark03:default"

# run alert machine
# note: list of machine hostnames for deploying alert server
alertServer="spark02"

# run api machine
# note: list of machine hostnames for deploying api server
apiServers="spark02"

将Hadoop集群下的core-site.xml和hdfs-site.xml复制到/usr/dolphin/apache-dolphinscheduler-1.3.6-bin/conf/
在这里插入图片描述
给install.sh脚本添加权限
在这里插入图片描述
执行安装./install.sh
在这里插入图片描述
在这里插入图片描述

访问UI界面

http://spark01:12345/dolphinscheduler
在这里插入图片描述

初始账号密码:
账号:admin
密码:dolphinscheduler123
在这里插入图片描述

在这里插入图片描述
进入后可以自己修改登入密码

admin
q1234567890

在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值