https://github.com/apache/dolphinscheduler.git
下载的版本为3.0.1release,但是版本号为3.0.2,果断全文替换。

配置数据库(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'
[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格式结尾换行,这次直接拿来结果不支持

还原该文件,通过IDEA配置编码,重新编译


安装包apache-dolphinscheduler-3.0.1-SNAPSHOT-bin.tar.gz,在dist目录下面

安装包大小比2.0大了近五倍,因为每个服务都单独打了包:


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


