当前位置:网站首页>dolphinscheduler3.x本地启动
dolphinscheduler3.x本地启动
2022-07-07 01:52:00 【HuntFalcon】
一、 基础软件安装(必装项请自行安装)
- PostgreSQL (8.2.15+) or MySQL (5.7系列) : 两者任选其一即可
- JDK (1.8+) : 必装
- ZooKeeper (3.4.6+) :必装
在 ZooKeeper 的目录下新建 zkData、zkLog文件夹
将 conf 目录下的 zoo_sample.cfg 文件,复制一份,重命名为 zoo.cfg,修改其中数据和日志的配置,如:
dataDir=/data/zookeeper/data ## 此处使用绝对路径
dataLogDir=/data/zookeeper/datalog
运行 ./bin/zkServer.sh
- Hadoop (2.6+) or MinIO :选装, 如果需要用到资源上传功能,针对单机可以选择本地文件目录作为上传文件夹(此操作不需要部署Hadoop);当然也可以选择上传到Hadoop or MinIO集群上
- Maven: v3.5+,配阿里云仓库地址即可
- Node: v16.13+ (dolphinScheduler 版本低于 3.0, 请安装 node v12.20+)
二、下载源码到本地
https://github.com/apache/dolphinscheduler.git
三、切换到指定分支,例如 3.0.0-xxx
四、切换到 dolphinscheduler-ui 目录下执行 npm install
成功后提示如下:
五、跳过测试编译
编译成功后提示如下
六、执行数据库脚本
-- 执行脚本前,创建数据库
CREATE DATABASE `dolphinscheduler`;
七、将父级 pom 中的mysql 依赖 scope 注释
刷新pom依赖
八、修改 dolphinscheduler-master 和 dolphinscheduler-worker 以及 dolphinscheduler-api配置,改为自己本地的数据库配置
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/dolphinscheduler?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
九、启动本地 ZooKeeper
十、启动程序
(1)启动前端 npm run dev
(2)启动 MasterServer
(3)启动 WorkerServer
(4)启动ApiApplicationServer
十一、访问前端页面
admin dolphinscheduler123
========================================================================
十二、如果需要本地启动调度任务需要修改 Hadoop 的一些配置
(1)dolphinscheduler-dao 模块下放入 core-site.xml 和 hdfs-site.xml
(2)修改 dolphinscheduler-common 模块下的 common.properties 配置
需要修改的参数有
# 服务器上按照后软件的位置
data.basedir.path=/data/software/dolphins3
# 修改 为 HDFS 文件服务器存储模式
resource.storage.type=HDFS
# hdfs 文件服务器上存储调度系统上传资源的位置 resource.upload.path=/data/dolphinscheduler3# hdfs 集群通信url
fs.defaultFS=hdfs://xxx.xxx.xxx.xxx:8020
# yarn 资源管理器ips
yarn.resourcemanager.ha.rm.ids=xxx.xxx.xxx.xxx
配置好之后就可以新建文件以及上传资源了
十三、源码打包,供服务器部署
# 打包
mvn -Dmaven.test.skip=true clean package install -Prelease
边栏推荐
- window下面如何安装swoole
- Jstat of JVM command: View JVM statistics
- Find duplicate email addresses
- 雷特智能家居龙海祁:从专业调光到全宅智能,20年专注成就专业
- Experience sharing of contribution of "management world"
- VMware安装后打开就蓝屏
- Ideas of high concurrency and high traffic seckill scheme
- Party A's requirements for those who have lost 800 yuan
- 你不知道的互联网公司招聘黑话大全
- 如何解决数据库插入数据显示SQLSTATE[HY000]: General error: 1364 Field ‘xxxxx‘ doesn‘t have a default value错误
猜你喜欢
3428. Put apples
Say sqlyog deceived me!
[FPGA tutorial case 13] design and implementation of CIC filter based on vivado core
【OpenCV】形态学滤波(2):开运算、形态学梯度、顶帽、黑帽
How to keep accounts of expenses in life
面试中有哪些经典的数据库问题?
A very good JVM interview question article (74 questions and answers)
软件测试的几个关键步骤,你需要知道
一段程序让你明白什么静态内部类,局部内部类,匿名内部类
基于ADAU1452的DSP及DAC音频失真分析
随机推荐
10W word segmentation searches per second, the product manager raised another demand!!! (Collection)
Qt多线程的多种方法之一 QThread
Rk3399 platform development series explanation (WiFi) 5.53, hostapd (WiFi AP mode) configuration file description
Jstat of JVM command: View JVM statistics
The boss always asks me about my progress. Don't you trust me? (what do you think)
Three updates to build applications for different types of devices | 2022 i/o key review
[Shell]常用shell命令及测试判断语句总结
Jstack of JVM command: print thread snapshots in JVM
[shell] summary of common shell commands and test judgment statements
C note 13
Handling hardfault in RT thread
Experience sharing of contribution of "management world"
LM小型可编程控制器软件(基于CoDeSys)笔记二十三:伺服电机运行(步进电机)相对坐标转换为绝对坐标
win系统下安装redis以及windows扩展方法
雷特智能家居龙海祁:从专业调光到全宅智能,20年专注成就专业
c面试 加密程序:由键盘输入明文,通过加密程序转换成密文并输出到屏幕上。
「解析」FocalLoss 解决数据不平衡问题
C language sorting (to be updated)
postgresql 数据库 timescaledb 函数time_bucket_gapfill()报错解决及更换 license
Change the original style of UI components