Hi guys,
I am having trouble to run my kedro from a docker build. I'm using MLflow and the kedro_mlflow.io.artifacts.MlflowArtifactDataset
I followed the instructions for building the container from kedro-docker repo but when running, those artifacts want to access my local windows path instead of the containers path. Do you guys know what additional settings I have to make? All my settings in are pretty much vanilla. The mlflow_tracking_uri
is set to null
"{dataset}.team_lexicon": type: kedro_mlflow.io.artifacts.MlflowArtifactDataset dataset: type: pandas.ParquetDataset filepath: data/03_primary/{dataset}/team_lexicon.pq metadata: kedro-viz: layer: primary preview_args: nrows: 5
Traceback (most recent call last): kedro.io.core.DatasetError: Failed while saving data to dataset MlflowParquetDataset(filepath=/home/kedro_docker/data/03_primary/D1-24-25/team_lexicon.pq, load_args={}, protocol=file, save_args={}). [Errno 13] Permission denied: '/C:'
I should use the AI more ๐ซ . Solved by explicitly setting the mlflow_tracking_uri
It was with the ask ai button. Maybe I was lucky because it referenced the base integration of mlflow in the docs.
Based on the error description, it appears you're encountering an issue with path handling when using MlflowArtifactDataset
in a Docker container. When using MLflow with Kedro in Docker, you need to ensure proper configuration:
mlflow.yml
configuration file in your conf/local
directoryFor Docker deployment, make sure your Docker container has the correct volume mounts and working directory set up. The working directory should be specified as the directory containing your Kedro project on the container.
mlruns
defautl folder and not the uri i provided by settingserver: mlflow_tracking_uri: mlruns_dockereven trying to use the default doesnt work.
server: mlflow_tracking_uri: mlruns