• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

dolphinscheduler 3.0.1代码下载编译和部署

武飞扬头像
韧小钊
帮助1

*️⃣主目录: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 <args> -rf :dolphinscheduler-dist

学新通
报错原因:dolphinscheduler-bin.xml不支持<lineEnding>unix</lineEnding>,之前设置过,保证编译出来的脚本文件以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
    学新通

其它

远程调试配置

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhghahgf
系列文章
更多 icon
同类精品
更多 icon
继续加载