ARTICLE DETAIL

资讯详情

深耕郑州网站建设与运营推广的一线实战洞察。

本地安装DolphinScheduler

本地安装DolphinScheduler 1.克隆项目到本地1 git clone GitHub - apache/dolphinscheduler: Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code · GitHub2.导入项目到IDEA并切换分支到 3.1.01 git checkout 3.1.0-release3.编译项目spotless是一种代码格式化工具使用 spotless:apply 表示开启module代码格式校验mvnw同mvn的功能是一样的mvnw做了项目适配./mvnw spotless:apply ./mvnw clean install -Prelease -Dmaven.test.skiptrue -Dcheckstyle.skiptrue -Dmaven.javadoc.skiptrue4.在mysql创建database数据库1 CREATE SCHEMA dolphinschedulertest;找到脚本dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql并运行5.修改项目配置文件全局搜索 application.yaml 将文件中涉及postgresql的替换为mysql# driver-class-name: org.postgresql.Driver # url: jdbc:postgresql://127.0.0.1:5432/dolphinscheduler # username: root # password: root driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/dolphinscheduler_test username: root password: rootroot # org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.PostgreSQLDelegate org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate6.修改dolphinscheduler-bom下pom.xmldependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version${mysql-connector.version}/version scopecompile/scope /dependency7.修改logback-spring.xml全局搜索logback-spring.xml将下面内容添加到其中root levelINFO !--将这句话加入到root节点下-- appender-ref refSTDOUT/ /root8.配置启动项分别配置MasterServer, WorkerServer, ApiApplicationServerMasterServer : Execute functionmainin the classorg.apache.dolphinscheduler.server.master.MasterServerby IntelliJ IDEA, with the configuration VM Options-Dlogging.configclasspath:logback-spring.xml -Ddruid.mysql.usePingMethodfalse -Dspring.profiles.activemysqlWorkerServer : Execute functionmainin the classorg.apache.dolphinscheduler.server.worker.WorkerServerby IntelliJ IDEA, with the configuration VM Options-Dlogging.configclasspath:logback-spring.xml -Ddruid.mysql.usePingMethodfalse -Dspring.profiles.activemysqlApiApplicationServer : Execute functionmainin the classorg.apache.dolphinscheduler.api.ApiApplicationServerby IntelliJ IDEA, with the configuration VM Options-Dlogging.configclasspath:logback-spring.xml -Dspring.profiles.activeapi,mysql. After it started, you could find Open API documentation in http://localhost:12345/dolphinscheduler/swagger-ui/index.html9.配置zookeeper10.启动前端pnpm install pnpm run dev11.启动后端分别在IDEA中运行MasterServer, WorkerServer, ApiApplicationServer登陆账号密码 admin/dolphinscheduler123参考文档Contribution - Development Environment Setup - 《Apache DolphinScheduler v3.1.0 Documentation》 - 书栈网 · BookStack
返回列表