FAQ
I was trying to use FileSystem for an append, but couldn't get it to work, and so I found org.apache.hadoop.fs.FileContext which I did get append to work in, and which according to my reading of https://issues.apache.org/jira/browse/HADOOP-4952 and https://issues.apache.org/jira/browse/HADOOP-6223 will be the new filesystem interaction API.

My big question, is how do I set multiple options? FileContext.create() specifies only a single object, and Options.CreateOpts only has some static methods to create individual option Options.CreateOptions objects of various types to control the different options. How do I specify multiple of those? Or how do I set the default SS Options on the FileContext (such as replication, block size, etc). It appears the only way to do that is by passing in a Configuration object with those set, yet the description Javadoc for the FileContext class states that only the default filesystem and umask are pulled from the Configuration object.

Any documentation that I'm missing? Do I need to go look through the source code?

--Aaron

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommon-user @
categorieshadoop
postedMar 22, '11 at 8:54p
activeMar 22, '11 at 8:54p
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Aaron Baff: 1 post

People

Translate

site design / logo © 2021 Grokbase