Skip to content

(WIP) Updated all calls to get file system through FSUtils.getFs() - #191

Closed
gekath wants to merge 1 commit into
apache:masterfrom
gekath:support-mult-fs
Closed

(WIP) Updated all calls to get file system through FSUtils.getFs()#191
gekath wants to merge 1 commit into
apache:masterfrom
gekath:support-mult-fs

Conversation

@gekath

Copy link
Copy Markdown
Contributor

Updates all consumers of FSUtils.getFs() to accept a path, and infers scheme based on given path and/or configuration, instead of inferring scheme through fs.defaultFS. Calls to get a filesystem go through FSUtils.getFs(), aimed to support multiple filesystems.

/fix#96
/cc @vinothchandar@prazanna@zqureshi

@gekath
gekathforce-pushed the support-mult-fs branch 2 times, most recently from 1bcce25 to ef5a407CompareJune 6, 2017 20:53

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a test, and not a CLI right. so why the parameters?

@vinothchandarvinothchandar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gekath Have you been able to test this out in production? This is rather big change, so would like to understand how much testing has been done..

@gekath
gekathforce-pushed the support-mult-fs branch 2 times, most recently from 63b301d to d6af8c9CompareJune 19, 2017 20:36
@gekathgekath changed the title Updated all calls to get file system through FSUtils.getFs()(WIP) Updated all calls to get file system through FSUtils.getFs()Jun 19, 2017
@gekath

Copy link
Copy Markdown
ContributorAuthor

@vinothchandar this PR focused on testing that a read from local, and write to HDFS will result in correct count of records, and this functionality should be similar between any two file systems. Our specific goal is to consider use case of reading from HDFS, writing to GCS. Will look at adding additional testing, (changed to WIP).

Key updates are in:

  1. Every call to FSUtils.getFs() has been changed to require a basePath, from which the URI is inferred, and this PR updates every consumer of getFs().
  2. In HoodieParquetWriter, registerFileSystem() now takes a path in order for getFs to access a path from which URI is inferred.

@vinothchandar

Copy link
Copy Markdown
Member

Sounds good. Will take a closer look sometime this week.
What I meant was, have you been able to test this out on any real production datasets yet?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger or please remote s.o.pln

@vinothchandarvinothchandar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look safe to me. Need to look at the stuff at HoodieWrapperFileSystem more closely..
Please ping back once you have tested this more for your use-cases.. I ll pull and test on HDFS at Uber as well and we can proceed from there.

@vinothchandar

Copy link
Copy Markdown
Member

@gekath any update on this?

@gekath

Copy link
Copy Markdown
ContributorAuthor

Hi @vinothchandar , we're working on integrating Hoodie into our current pipeline and then will proceed to test out performance.

@vinothchandar

Copy link
Copy Markdown
Member

Sounds good. please keep us posted on progress/blockers.

@prazanna

Copy link
Copy Markdown
Contributor

@gekath - Do you have any updates on this PR? Thanks.

@zqureshi

Copy link
Copy Markdown
Contributor

@prazanna not much progress on this front yet.

@vinothchandar

Copy link
Copy Markdown
Member

from what @gekath and I discusssed offline.. Seems this is being actively tested :)

@gekathgekath changed the title (WIP) Updated all calls to get file system through FSUtils.getFs()Updated all calls to get file system through FSUtils.getFs()Aug 24, 2017
@gekath
gekathforce-pushed the support-mult-fs branch 2 times, most recently from 82e2216 to 3949388CompareAugust 24, 2017 17:16
Merge conflicts
Merge conflicts
Removed print statement
Merge conflicts
Merge conflicts
Merge conflicts
Merge conflict
Removed default getFs that takes no arguments.
@vinothchandar

Copy link
Copy Markdown
Member

@alunarbeach do you want to drive this?

@vinothchandarvinothchandar self-assigned this Dec 4, 2017
@vinothchandarvinothchandar changed the title Updated all calls to get file system through FSUtils.getFs()(WIP) Updated all calls to get file system through FSUtils.getFs()Dec 11, 2017
@vinothchandar

Copy link
Copy Markdown
Member

Closing in favor of #293

vinishjail97 pushed a commit to vinishjail97/hudi that referenced this pull request Dec 15, 2023
Co-authored-by: StreamingFlames <18889897088@163.com>
Co-authored-by: Nicholas Jiang <programgeek@163.com>
Co-authored-by: Y Ethan Guo <ethan.guoyihua@gmail.com>
Co-authored-by: Sagar Sumit <sagarsumit09@gmail.com>
Co-authored-by: Alexey Kudinkin <alexey@infinilake.com>
Co-authored-by: RexAn <bonean131@gmail.com>
Sign up for freeto 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.

Support multiple filesystems

4 participants

@gekath@vinothchandar@prazanna@zqureshi