官方文档:https://dolphinscheduler.apache.org/en-us/docs/3.1.3/guide/installation/standalone
1.安装(以放在/home为例)
下载见:https://download.csdn.net/download/taotao_guiwang/89311365
tar -xvzf apache-dolphinscheduler-3.2.1-bin.tar.gz
chmod -R 777 apache-dolphinscheduler-3.2.1-bin
cd apache-dolphinscheduler-3.2.1-bin
bash ./bin/dolphinscheduler-daemon.sh start standalone-server
2.数据库配置(以MySQL为例)
2.1 准备驱动
把MySQL驱动放在
/home/apache-dolphinscheduler-3.2.1-bin/standalone-server/libs/standalone-server(用于dolphinscheduler相关服务)
/home/apache-dolphinscheduler-3.2.1-bin/tools/libs(用于2.2初始化数据库)
mysql-connector-java-8.0.29.jar(要用8.x驱动)
2.2 初始化数据库
创建数据库:
CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
初始化数据:
bash /home/apache-dolphinscheduler-3.2.1-bin/tools/bin/upgrade-schema.sh
2.3 修改yaml配置
vi /home/apache-dolphinscheduler-3.2.1-bin/standalone-server/conf/application.yaml
3. 启动&停止
# Start Standalone Server
bash /home/apache-dolphinscheduler-3.2.1-bin/bin/dolphinscheduler-daemon.sh start standalone-server
# Stop Standalone Server
bash /home/apache-dolphinscheduler-3.2.1-bin/bin/dolphinscheduler-daemon.sh stop standalone-server
4. 访问
地址:http://IP:12345/dolphinscheduler/ui/login
账号:admin
密码:dolphinscheduler123
5.配置Flink环境
下载见:https://download.csdn.net/download/taotao_guiwang/89334980
配置到系统环境变量:
echo 'export FLINK_HOME=/home/flink-1.19.0' >> ~/.bashrc
echo 'export PATH=$FLINK_HOME/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
查看
flink --version