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

Be more rigorous with FileSystem.get #1087

Closed
fnothaft opened this Issue Jul 20, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@fnothaft
Member

fnothaft commented Jul 20, 2016

We often use FileSystem.get to get the file system that underlies a cluster, e.g.

val fs = FileSystem.get(sc.hadoopConfiguration)
. However, this checks the given file URI against the fs.defaultFS parameter, and throws if the file systems don't match. This isn't usually a problem, but when running Spark-on-YARN with data on an NFS (file:// URI), you can't get this to work. Overriding fs.defaultFS to file:/// causes job startup issues.

@fnothaft fnothaft self-assigned this Jul 20, 2016

@fnothaft fnothaft added this to the 0.20.0 milestone Jul 20, 2016

@fnothaft fnothaft added the bug label Jul 20, 2016

fnothaft added a commit to fnothaft/adam that referenced this issue Aug 14, 2016

[ADAM-1087] Migrate away from FileSystem.get
FileSystem.get returns the configured default file system. This can cause
issues when loading a file off a non-default FileSystem, e.g., an NFS or S3.
This PR changes to use Path.getFileSystem. Resolves #1087.

fnothaft added a commit to fnothaft/adam that referenced this issue Aug 26, 2016

[ADAM-1087] Migrate away from FileSystem.get
FileSystem.get returns the configured default file system. This can cause
issues when loading a file off a non-default FileSystem, e.g., an NFS or S3.
This PR changes to use Path.getFileSystem. Resolves #1087.

@heuermh heuermh closed this in #1116 Aug 27, 2016

heuermh added a commit to heuermh/adam that referenced this issue Sep 27, 2016

[ADAM-1087] Migrate away from FileSystem.get
FileSystem.get returns the configured default file system. This can cause
issues when loading a file off a non-default FileSystem, e.g., an NFS or S3.
This PR changes to use Path.getFileSystem. Resolves #1087.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment