Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MLflow: INVALID_PARAMETER_VALUE: Unsupported URI './mlruns' for model registry store

Tags:

python

mlflow

I got this error when I was trying to have a model registered in the model registry. Could someone help me?

RestException: INVALID_PARAMETER_VALUE: Unsupported URI './mlruns' for model registry store. 
Supported schemes are: ['postgresql', 'mysql', 'sqlite', 'mssql']. 
See https://www.mlflow.org/docs/latest/tracking.html#storage for how to setup a compatible server.
like image 672
Aprilcui11 Avatar asked Aug 04 '20 21:08

Aprilcui11


1 Answers

Mlflow required DB as datastore for Model Registry So you have to run tracking server with DB as backend-store and log model to this tracking server. The easiest way to use DB is to use SQLite.

mlflow server \
    --backend-store-uri sqlite:///mlflow.db \
    --default-artifact-root ./artifacts \
    --host 0.0.0.0

And set MLFLOW_TRACKING_URI environment variable to http://localhost:5000 or

mlflow.set_tracking_uri("http://localhost:5000")

After got to http://localhost:5000 and you can register a logged model from UI or from the code.

like image 148
Sergey Pryvala Avatar answered Oct 04 '22 22:10

Sergey Pryvala