Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dvc/fs/hdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class HDFSFileSystem(CallbackMixin, FSSpecWrapper):
def _strip_protocol(cls, path: str) -> str:
from fsspec.utils import infer_storage_options

return infer_storage_options(path)["path"].lstrip("/")
return infer_storage_options(path)["path"]

def unstrip_protocol(self, path: str) -> str:
host = self.fs_args["host"]
Expand Down Expand Up @@ -60,7 +60,7 @@ def _checksum(self, path, **kwargs):
result = self._run_command(
f"checksum {url}",
env=fix_env(os.environ),
user=self.fs_args["user"],
user=self.fs_args.get("user"),
)
if result is None:
return None
Expand Down