1. 上传dolphinscheduler到 /opt/upload
2 解压dolphinscheduler
tar -zxvf apache-dolphinscheduler-3.2.0-bin.tar.gz -C /opt/software/
3 重命名dolphinscheduler
cd /opt/software
mv apache-dolphinscheduler-3.2.0-bin/ dolphinscheduler-3.2.0
4 上传mysql-connector-java-8.0.16.jar 到/opt/upload
下载 mysql-connector-java-8.0.16.jar
下载地址:https://downloads.mysql.com/archives/c-j/
解压zip文件,找到 mysql-connector-java-8.0.16.jar文件并上传
5 复制mysql-connector-java-8.0.16.jar到dolphinscheduler
复制mysql-connector-java-8.0.16.jar到 DolphinScheduler 的 tools/libs、 alert-server/libs、api-server/libs、 master-server/libs、worker-server/libs下面
cp /opt/upload/mysql-connector-java-8.0.16.jar /opt/software/dolphinscheduler-3.2.0/master-server/libs/
cp /opt/upload/mysql-connector-java-8.0.16.jar /opt/software/dolphinscheduler-3.2.0/worker-server/libs/
cp /opt/upload/mysql-connector-java-8.0.16.jar /opt/software/dolphinscheduler-3.2.0/api-server/libs/
cp /opt/upload/mysql-connector-java-8.0.16.jar /opt/software/dolphinscheduler-3.2.0/alert-server/libs/
cp /opt/upload/mysql-connector-java-8.0.16.jar /opt/software/dolphinscheduler-3.2.0/tools/libs/
5 创建元数据库
CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON dolphinscheduler.* TO 'root'@'%';
FLUSH PRIVILEGES;
6 配置dolphinscheduler_env.sh
cd /opt/software/dolphinscheduler-3.2.0/bin/env
vim dolphinscheduler_env.sh
# 配置元数据库相关信息
export DATABASE=${DATABASE:-mysql}
export SPRING_PROFILES_ACTIVE=${DATABASE}
export SPRING_DATASOURCE_URL=jdbc:mysql://192.168.154.131:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8&useSSL=false
export SPRING_DATASOURCE_USERNAME=root
export SPRING_DATASOURCE_PASSWORD=
# 配置zookeeper相关信息
export REGISTRY_TYPE=${REGISTRY_TYPE:-zookeeper}
export REGISTRY_ZOOKEEPER_CONNECT_STRING=${REGISTRY_ZOOKEEPER_CONNECT_STRING:-192.168.154.131:2181}
7 执行 upgrade-schema.sh
cd /opt/software/dolphinscheduler-3.2.0
chmod 777 tools/bin/upgrade-schema.sh
bash tools/bin/upgrade-schema.sh
8 配置 install_env.sh
cd /opt/software/dolphinscheduler-3.2.0/bin/env
vim install_env.sh
ips=${ips:-"192.168.154.131"}
sshPort=${sshPort:-"22"}
masters=${masters:-"192.168.154.131"}
workers=${workers:-"192.168.154.131:default"}
alertServer=${alertServer:-"192.168.154.131"}
apiServers=${apiServers:-"192.168.154.131"}
installPath=${installPath:-"/opt/software/dolphinscheduler-3.2.1/ds"}
deployUser=${deployUser:-"root"}
zkRoot=${zkRoot:-"/dolphinscheduler"}
9 创建dolphinscheduler安装目录
cd /opt/software/dolphinscheduler-3.2.0/
mkdir ds
10 执行install.sh
cd /opt/software/dolphinscheduler-3.2.0/bin/
./install.sh
11 访问web界面
http://192.168.154.131:12345/dolphinscheduler/ui
默认的用户名和密码是 admin/dolphinscheduler123
12 停止dolphinscheduler
cd /opt/software/dolphinscheduler-3.2.0/bin
./start-all.sh