首页 > 解决方案 > 无法在 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。错误还是我错过了什么?

标签: pythonmlflow

解决方案


好的。因此,看起来虽然 ARTIFACTS STORE 确实支持 hdfs,但您必须使用文件或类似 sql 的 BACKEND STORE。


推荐阅读