Skip to content

Commit

Permalink
Uniquely-named directory was always created for hdfs artifact repo (#…
Browse files Browse the repository at this point in the history
…5210)

* Fix command in xgboost example readme (#5202)

Signed-off-by: Junwen Yao <jwyiao@gmail.com>
Signed-off-by: Dima Claudiu <claudiu.dima@soleadify.com>

* formatting

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

Co-authored-by: Junwen Yao <jwyiao@gmail.com>
Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 21, 2022
1 parent 2078937 commit b81a1d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mlflow/store/artifact/hdfs_artifact_repo.py
Expand Up @@ -125,7 +125,10 @@ def download_artifacts(self, artifact_path, dst_path=None):
"""

hdfs_base_path = _resolve_base_path(self.path, artifact_path)
local_dir = _tmp_dir(dst_path)
if dst_path and os.path.exists(dst_path):
local_dir = os.path.abspath(dst_path)
else:
local_dir = _tmp_dir(dst_path)

with hdfs_system(scheme=self.scheme, host=self.host, port=self.port) as hdfs:

Expand Down

0 comments on commit b81a1d3

Please sign in to comment.