1、下載并解壓Dolphinscheduler
DolphinScheduler | 下載 (apache.org)
下載完成后得tar.gz包
下載穩定版
下載穩定版
下載穩定版
tar -zxvf?apache-dolphinscheduler-3.1.9-alpha-bin.tar.gz
mv apache-dolphinscheduler-3.1.9-alpha-bin dolphinscheduler-bin
cd dolphinscheduler-bin
2、初始化數據庫
1)數據庫文件在dolphinscheduler-bin/standalone-server/conf/sql內,含有H2,PG,MYSQL的sql執行文件;
2)在PG庫內創建名為dolphinscheduler數據庫;
3)在數據庫內執行dolphinscheduler_postgresql.sql,進行數據庫初始化;
3、下載依賴,及修改數據庫配置
數據庫連接需要依賴,下載PG庫的依賴postgresql-42.6.0.jar(mysql下載mysql-connector-java驅動),放到api-server/libs
?和?alert-server/libs
?和?master-server/libs
?和?worker-server/libs和
./standalone-server/libs/standalone-server/目錄下;
修改配置:dolphinscheduler-bin/bin/env/dolphinscheduler_env.sh,添加如下配置
# for postgresql
export DATABASE=postgresql
export SPRING_PROFILES_ACTIVE=postgresql
export SPRING_DATASOURCE_URL=jdbc:postgresql://127.0.0.1:5432/dolphinscheduler
# 替換你自己的數據庫賬號密碼
export SPRING_DATASOURCE_USERNAME=postgres
export SPRING_DATASOURCE_PASSWORD=postgres
4、啟動關閉命令
# 啟動 Standalone Server 服務
bash ./bin/dolphinscheduler-daemon.sh start standalone-server
# 停止 Standalone Server 服務
bash ./bin/dolphinscheduler-daemon.sh stop standalone-server
# 狀態 Standalone Server 服務
bash ./bin/dolphinscheduler-daemon.sh status standalone-server
訪問地址:http://localhost:12345/dolphinscheduler/ui
默認賬號密碼:admin/dolphinscheduler123