- 安装JDK11
sudo apt-get install openjdk-11-jdk
mkdir ~/dolphinscheduler
cd ~/dolphinscheduler
wget https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.9/apache-dolphinscheduler-3.1.9-bin.tar.gz
tar -xvf apache-dolphinscheduler-3.1.9-bin.tar.gz
- 配置数据保存到postgresql数据库
wget https://jdbc.postgresql.org/download/postgresql-42.7.4.jar
将这个tar包分别放入一下路径
api-server/libs
alert-server/libs
master-server/libs
worker-server/libs
- 创建数据库
CREATE DATABASE dolphinscheduler;
- 添加配置
vim ~/dolphinscheduler/apache-dolphinscheduler-3.1.9-bin/bin/env/dolphinscheduler_env.sh
添加如下
export DATABASE=postgresql
export SPRING_PROFILES_ACTIVE=${DATABASE}
export SPRING_DATASOURCE_URL="jdbc:postgresql://127.0.0.1:5432/dolphinscheduler"
export SPRING_DATASOURCE_USERNAME=username
export SPRING_DATASOURCE_PASSWORD=password
- 初始化数据库
bash tools/bin/upgrade-schema.sh
- 启动
# Start Standalone Server
bash ./bin/dolphinscheduler-daemon.sh start standalone-server
# Stop Standalone Server
bash ./bin/dolphinscheduler-daemon.sh stop standalone-server
8 访问
Access address http://localhost:12345/dolphinscheduler/ui and login DolphinScheduler UI. The default username and password are admin/dolphinscheduler123
参考
https://dolphinscheduler.apache.org/en-us/docs/3.1.3/guide/installation/standalone
使用
https://dolphinscheduler.apache.org/zh-cn/docs/3.2.2/guide/project/project-list