简体   繁体   English

将 MLflow 服务器连接到本地的 minio

[英]Connect MLflow server to minio in local

I am trying to connect mlflow with Minio server, both are running on my local machine, I am able to connect my client code to minio by adding the below lines to the code,我正在尝试将 mlflow 与 Minio 服务器连接,两者都在我的本地机器上运行,我可以通过将以下几行添加到代码中来将我的客户端代码连接到 minio,

os.environ['MLFLOW_S3_ENDPOINT_URL'] = 'http://localhost:9000'
os.environ['AWS_ACCESS_KEY_ID'] ="xxxx"
os.environ['AWS_SECRET_ACCESS_KEY'] ="xxxxxx" 
os.environ['MLFLOW_TRACKING_URI'] = 'http://localhost:5000'

But the mlflow server is not getting connected to Minio.但是 mlflow 服务器没有连接到 Minio。 To run Mlflow server, command I use:要运行 Mlflow 服务器,我使用命令:

mlflow server -h 0.0.0.0 -p 5000 --default-artifact-root s3://mlbucket --backend-store-uri sqlite:///mlflow.db

The mlflow server runs, but while accessing the artifacts page the server, it throws the error: mlflow 服务器运行,但在访问服务器的工件页面时,它抛出错误:

raise NoCredentialsError()
botocore.exceptions.NoCredentialsError: Unable to locate credentials

So how can I pass the credentials of the Minio to the mlflow server command?那么如何将 Minio 的凭据传递给 mlflow 服务器命令呢?

Just add the below environment variables:只需添加以下环境变量:

export AWS_ACCESS_KEY_ID=<your-aws-access-key-id>
export AWS_SECRET_ACCESS_KEY = <your-aws-secret-access-key>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM