dolphinscheduler 3.0.1部署

一、下载编译下载编译application.yaml配置

二、部署解压启动登录

其它

*️⃣主目录:dolphinscheduler 3.0.1功能梳理及源码解读

下一集:dolphinscheduler 3.0.1首页功能介绍及前端项目本地启动配置

一、下载编译

下载

下载地址

https://github.com/apache/dolphinscheduler.git

下载的版本为3.0.1release,但是版本号为3.0.2,果断全文替换。

编译

application.yaml配置

配置数据库(mysql或者pgsql),涉及api,master,worker,alert服务

如果只是为了登录简单了解,查看有哪些功能,也可以什么都不用修改,直接启动standalone,该模式使用的h2数据库(如果重启服务,数据初始化,原先创建的数据将不复存在)

配置完数据库,初始化数据库,执行对应的初始化脚本

配置zk:node1:2181,node2:2181,node3:2181 默认localhost:2181

在根目录下面执行编译命令

mvn clean install -Prelease

跳过测试、注释、格式检查, IntelliJ IDEA 编译需加单引号

mvn clean install -Prelease '-Dmaven.test.skip=true' '-Dcheckstyle.skip=true' '-Dmaven.javadoc.skip=true'

编译报错(直接下载编译,应该不会报错,只不过版本号显示的是3.0.2)

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.3.0:single (dolphinscheduler-bin) on project dolphinscheduler-dist: Failed to create assembly: Error creating assembly archive bin: Cannot transform lin

e endings on this kind of file: apache-dolphinscheduler-3.0.1-SNAPSHOT-bin\alert-server\libs\HdrHistogram-2.1.12.jar

[ERROR] Doing so is more or less guaranteed to destroy the file, and it indicates a problem with your assembly descriptor.

[ERROR] This error message is new as of 2.5.3.

[ERROR] Earlier versions of assembly-plugin will silently destroy your file. Fix your descriptor

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :dolphinscheduler-dist

报错原因:dolphinscheduler-bin.xml不支持unix,之前设置过,保证编译出来的脚本文件以unix格式结尾换行,这次直接拿来结果不支持

还原该文件,通过IDEA配置编码,重新编译 安装包apache-dolphinscheduler-3.0.1-SNAPSHOT-bin.tar.gz,在dist目录下面 安装包大小比2.0大了近五倍,因为每个服务都单独打了包:

二、部署

解压

启动

进入bin目录,启动服务(调用每个服务下面的bin/start.sh脚本)

sh dolphinscheduler-daemon.sh start api-server

sh dolphinscheduler-daemon.sh start master-server

sh dolphinscheduler-daemon.sh start worker-server

sh dolphinscheduler-daemon.sh start alert-server

进入具体服务目录,直接启动start.sh 也可以 api服务: 提供API接口,启动该服务便可以登录系统,进行增删改查操作master服务: 工作流处理服务,扫描指令表,登记工作流实例worker服务: 任务处理服务,扫描任务表,处理任务alert服务: 告警服务,发送告警信息

登录

登录地址:http://xxx.xxx.xxx.xxx:12345/dolphinscheduler/ui/login用户密码:admin/dolphinscheduler123

其它

远程调试配置

查看原文