mlflow: [BUG]Issue with R API log artifacts
We are trying to use MFLOW from RStudio. MLFLOW tracking server is hosted on a remote server[docker container] access over https served by an nginx. We have noticed 2 errors
- RUN ID missing.At times it complains that the run id generated its not found.However that run ID is existing on MLFLOWServer .However if we rename the run id on the tracking server and re run the code the run id is accepted by the API.
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/bin/mlflow", line 11, in <module>
sys.exit(cli())
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/lib/python3.6/site-packages/mlflow/store/cli.py", line 62, in log_artifacts
artifact_uri = store.get_run(run_id).info.artifact_uri
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/lib/python3.6/site-packages/mlflow/store/file_store.py", line 380, in get_run
run_info = self._get_run_info(run_id)
File "/home/ealiasbi/.conda/envs/r-mlflow-1.0.0/lib/python3.6/site-packages/mlflow/store/file_store.py", line 396, in _get_run_info
databricks_pb2.RESOURCE_DOES_NOT_EXIST)
mlflow.exceptions.MlflowException: Run '61f82e624abe44d094dccb320e22a3aa' not found
- issue with “mlflow_log_artifact”
no applicable method for 'mlflow_id' applied to an object of class "c('tbl_df', 'tbl', 'data.frame')"
Below is the code and calls to MLFLOW server using R APIs listed here https://www.mlflow.org/docs/latest/R-api.html#mlflow-log-artifact
library(reticulate)
use_condaenv('mlflowtest4')
#mlflow::install_mlflow()
library(mlflow)
library(glmnet)
library(carrier)
# install_mlflow()
client <- mlflow_client(tracking_uri = "https://XXXX:4443")
mlflow_client(tracking_uri = "https://XXXXXX:4443")
mlflow_create_experiment("bicky/test_example66", artifact_location = '/home/ealiasbi/mlflow', client = client)
with(mlflow_start_run(),{
run1= mlflow_start_run(experiment_id=51,client=client)
mlflow_log_param("parameter", 5, run_id=run1$run_uuid, client=client)
mlflow_log_metric("metric", 0, run_id=run1$run_uuid, client=client)
mlflow_log_artifact("wine-quality.csv", artifact_path = '/home/ealiasbi/mflow/wine-quality.csv', run_id = run1$run_uuid, client = client)
})
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 16 (9 by maintainers)
@lorenzwalthert, we are going to address this distinction clearly and succinctly in #3108