Skip to content

[Hdfs Utils] add uri param to filesystem get api#1219

Open
bheroder wants to merge 1 commit into
feathr-ai:mainfrom
bheroder:hdfsutils
Open

[Hdfs Utils] add uri param to filesystem get api#1219
bheroder wants to merge 1 commit into
feathr-ai:mainfrom
bheroder:hdfsutils

Conversation

@bheroder

@bheroder bheroder commented Sep 9, 2023

Copy link
Copy Markdown

Description

when HDFS is configured with fs.defaultsFS pointing to blob storage, we are not able to give local path as source location in feature definition config. this is because hdfsutils.scala uses FileSystem.get(conf) API. instead using FileSystem.get(URI, conf) solves the problem where one can give source location as file:///xyz even though defaultFS points to blob.

Testing

manually tested using notebook session configured with fs.defaultFS= wasbs://xyz
FileSystem.get(conf).exists("file:///path") returns false
FileSystem.get(URI, conf).exists("file:///path") returns true

Does this PR introduce any user-facing changes?

  • [X ] No. You can skip the rest of this section.
  • Yes. Make sure to clarify your proposed changes.

@bheroder

bheroder commented Sep 9, 2023

Copy link
Copy Markdown
Author

cc @xiaoyongzhu

@bheroder

bheroder commented Sep 12, 2023

Copy link
Copy Markdown
Author

@windoze could you help with tagging the right reviewers ?

@bheroder

Copy link
Copy Markdown
Author

@jaymo001 @rakeshkashyap123 could you please review ? cc @windoze

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.

1 participant