macbook本地如何部署dolphinscheduler 3.x 开发环境
时间: 2023-09-28 14:09:33 浏览: 80
在macOS上部署DolphinScheduler 3.x的开发环境需要进行以下步骤:
1. 安装Java JDK
在macOS上安装Java JDK可以通过Homebrew或者手动下载安装包的方式进行。推荐使用Homebrew进行安装,命令如下:
```
brew install openjdk
```
2. 安装MySQL
在macOS上安装MySQL也可以通过Homebrew进行,命令如下:
```
brew install mysql
```
安装完成后,需要启动MySQL服务:
```
brew services start mysql
```
3. 下载DolphinScheduler代码
可以从DolphinScheduler官方仓库中下载代码,地址为:https://github.com/apache/dolphinscheduler
```
git clone https://github.com/apache/dolphinscheduler.git
```
4. 初始化数据库
在MySQL中创建dolphinscheduler数据库,并且将dolphinscheduler/sql目录下的dolphinscheduler_creat.sql和dolphinscheduler_data.sql导入到数据库中。
5. 配置DolphinScheduler
在dolphinscheduler/conf目录下,将application-dev.sample.properties文件复制一份并且改名为application-dev.properties。修改文件中的数据库连接信息。
6. 编译并启动DolphinScheduler
在dolphinscheduler目录下,执行以下命令进行编译:
```
./gradlew build
```
编译完成后,执行以下命令启动DolphinScheduler:
```
./dolphinscheduler-daemon.sh start
```
以上就是在macOS上部署DolphinScheduler 3.x的开发环境的步骤,希望对你有帮助。