Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filesystem.resolve_filesystem_and_path: Fix host for HDFS
Using `fsspec.url_to_fs` resulted in using an incorrect host value for instantiating HDFS filesystems. For example `fsspec.url_to_fs("viewfs://root/user/someone")` would call `fsspec.filesystem("viewfs", host="root")`, which could cause errors. Instead in this case we need the host to be `viewfs://root`, so we restore most of the code of that function from before #128. However since we're using fsspec we can generalize to all its supported file system implementations.
- Loading branch information