python - 无法在 python 中的 mlflow 中使用 HDFS 路径设置_tracking_uri
问题描述
我是 mlflow 的新手,所以我可能会误解事情应该如何在基本层面上工作。
但是,当我尝试执行以下操作时:
TRACKING_URI = os.path.join(
"hdfs://namenode/user/userid/",
"mlflow",
"anomaly_detection",
)
mlflow.set_tracking_uri(TRACKING_URI)
client = mlflow.tracking.MlflowClient(TRACKING_URI)
我收到以下错误:
UnsupportedModelRegistryStoreURIException: Model registry functionality is unavailable; got unsupported URI 'hdfs://nameservice1/user/rxb427/mlflow/anomaly_detection' for model registry data storage. Supported URI schemes are: ['', 'file', 'databricks', 'http', 'https', 'postgresql', 'mysql', 'sqlite', 'mssql']. See https://www.mlflow.org/docs/latest/tracking.html#storage for how to run an MLflow server against one of the supported backend storage locations.
在错误提供的上述链接中,它声明支持 hdfs。错误还是我错过了什么?
解决方案
好的。因此,看起来虽然 ARTIFACTS STORE 确实支持 hdfs,但您必须使用文件或类似 sql 的 BACKEND STORE。
推荐阅读
- sql - 将作为文本数据类型的日期转换为 PostgreSQL 中的特定格式
- javascript - 使用 Node.js 将多个图像写入磁盘
- mongodb - 如何使用 mongodb 聚合计算 z-score
- kubernetes - Kubernetes 中的自动 Pod 删除延迟
- javascript - 用于心脏表情符号的 js utf-8 编码与 php 不同
- asp.net-mvc-5 - 无法在另一个项目的解决方案引用类中获取项目
- java - JavaCV - 提高网络摄像头质量
- tensorflow - 来自第一个教程的 TensorFlow 模型没有像预期的那样工作
- python - SageMaker Neo PyTorch 1.0.0
- java - 如何在图库应用程序中显示特定文件夹中的图像?