Apache DolphinScheduler MLflow 项目教程

Apache DolphinScheduler MLflow 项目教程

dolphinscheduler-mlflowMLFlow examples for Apache Dolphinscheduler项目地址:https://gitcode.com/gh_mirrors/do/dolphinscheduler-mlflow

1. 项目的目录结构及介绍

Apache DolphinScheduler MLflow 项目的目录结构如下:

dolphinscheduler-mlflow/
├── bin
│   ├── dolphinscheduler_env.sh
│   └── start.sh
├── conf
│   ├── common.properties
│   └── logback.xml
├── docs
│   └── README.md
├── src
│   ├── main
│   │   ├── java
│   │   └── resources
│   └── test
│       ├── java
│       └── resources
├── .gitignore
├── LICENSE
├── NOTICE
└── README.md

目录结构介绍

  • bin/: 包含启动脚本和环境配置文件。
    • dolphinscheduler_env.sh: 环境变量配置文件。
    • start.sh: 启动 DolphinScheduler 的脚本。
  • conf/: 包含项目的配置文件。
    • common.properties: 通用配置文件。
    • logback.xml: 日志配置文件。
  • docs/: 包含项目的文档文件。
    • README.md: 项目说明文档。
  • src/: 包含项目的源代码。
    • main/: 主代码目录。
      • java/: Java 源代码。
      • resources/: 资源文件。
    • test/: 测试代码目录。
      • java/: 测试 Java 源代码。
      • resources/: 测试资源文件。
  • .gitignore: Git 忽略文件配置。
  • LICENSE: 项目许可证文件。
  • NOTICE: 项目声明文件。
  • README.md: 项目说明文档。

2. 项目的启动文件介绍

启动文件

  • bin/dolphinscheduler_env.sh: 该文件用于配置 DolphinScheduler 运行所需的环境变量。例如:

    export PYTHON_HOME=$(dirname $(which conda))/python
    
  • bin/start.sh: 该文件用于启动 DolphinScheduler 服务。启动命令如下:

    cd apache-dolphinscheduler-3.1.0-bin
    bash bin/dolphinscheduler-daemon.sh start standalone-server
    

启动步骤

  1. 配置环境变量:

    echo "export PYTHON_HOME=$(dirname $(which conda))/python" >> apache-dolphinscheduler-3.1.0-bin/bin/env/dolphinscheduler_env.sh
    
  2. 启动 DolphinScheduler:

    cd apache-dolphinscheduler-3.1.0-bin
    bash bin/dolphinscheduler-daemon.sh start standalone-server
    
  3. 查看日志:

    tail -500f standalone-server/logs/dolphinscheduler-standalone.log
    

3. 项目的配置文件介绍

配置文件

  • conf/common.properties: 该文件包含项目的通用配置,例如 MLflow 的预设仓库路径:

    ml.mlflow.preset_repository=/path/to/dolphinscheduler-mlflow
    
  • conf/logback.xml: 该文件用于配置项目的日志输出格式和级别。

配置步骤

  1. 克隆项目仓库:

    git clone https://github.com/apache/dolphinscheduler-mlflow.git
    
  2. 修改 common.properties 文件:

    ml.mlflow.preset_repository=/path/to/dolphinscheduler-mlflow
    
  3. 启动 DolphinScheduler:

    cd apache-dolphinscheduler-3.1.0-bin
    bash bin/dolphinscheduler-daemon.sh start standalone-server
    

通过以上步骤,您可以成功配置和启动 Apache DolphinScheduler MLflow 项目。

dolphinscheduler-mlflowMLFlow examples for Apache Dolphinscheduler项目地址:https://gitcode.com/gh_mirrors/do/dolphinscheduler-mlflow

  • 11
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

蓬玮剑

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值