datarevenue-berlin / OpenMLOps

MIT License
695 stars 101 forks source link

NoCredentialsError Error with MLflow #86

Open NhatAnh opened 2 years ago

NhatAnh commented 2 years ago

Hello, I followed the tutorial https://github.com/datarevenue-berlin/OpenMLOps/blob/master/tutorials/basic-usage-of-jupyter-mlflow-and-prefect.md

But when I get to mlflow.sklearn.log_model(lr, "model"), I get the error NoCredentialsError: Unable to locate credentials. If I understand correctly, MLFlow does not have the AWS credential to save files to S3 bucket? I thought the bucket was created by Terraform script, so shouldn't it already have the credential? How should I go and fix this? Thanks

jralduaveuthey commented 2 years ago

check this https://github.com/mlflow/mlflow/issues/2150 or this https://www.youtube.com/watch?v=1ykg4YmbFVA&list=PL3MmuxUbc_hIUISrluw_A7wDSmfOhErJK&index=17 specially minute 25 when he edits the inbound rules so it can listen to the port 5000 where mlflow goes