• dolphinscheduler 3.0.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  -rf :dolphinscheduler-dist
    

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

    • 还原该文件,通过IDEA配置编码,重新编译
      unix
      在这里插入图片描述

    • 安装包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
      在这里插入图片描述

    其它

    远程调试配置

  • 相关阅读:
    自己整理的前端开发面试题
    Day726.Java平台模块系统 -Java8后最重要新特性
    CSP-J 2023 第二轮认证入门级(含答案)
    【TS】Error: Property ‘click‘ does not exist on type ‘Element‘
    Mybatis-Plus
    2022年软件评测师考试大纲
    Python torch.nn.Module.register_forward_pre_hook用法及代码示例
    微信小程序rich-text里面写单行溢出显示省略号在ios中不显示的问题
    【三维点云】2-三维点云表征
    【前端学习 - Vue (3) 生命周期】
  • 原文地址:https://blog.csdn.net/qq_36434219/article/details/127056633