Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filesystem.resolve_filesystem_and_path: Fix host for HDFS #131

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

npennequin
Copy link
Collaborator

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.

@npennequin npennequin marked this pull request as ready for review November 27, 2024 07:31
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.
@npennequin npennequin merged commit 1729706 into master Nov 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants