[
https://issues.apache.org/jira/browse/HADOOP-16963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080005#comment-17080005
]
Masatake Iwasaki commented on HADOOP-16963:
-------------------------------------------
{quote}When mkdirs(Path) is called against LocalFileSystem, the implementation
in RawLocalFileSystem is called and the directory permission is determined by
the umask. However, if it is under ViewFileSystem, the default implementation
in FileSystem is called and this causes explicit chmod() to 0777.
{quote}
Is this statement of HADOOP-16582 correct? I tried {{hadoop fs -mkdir
/tmp/test1}} on hadoop-3.2.1 (without HADOOP-16582) and trunk with the
following configuration. The permission of the created dir was 755 on both
versions.
{noformat}
<property>
<name>fs.defaultFS</name>
<value>viewfs://clusterX</value>
</property>
<property>
<name>fs.viewfs.mounttable.clusterX.link./tmp</name>
<value>file:///tmp</value>
</property>
{noformat}
> HADOOP-16582 changed mkdirs() behavior
> --------------------------------------
>
> Key: HADOOP-16963
> URL: https://issues.apache.org/jira/browse/HADOOP-16963
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.10.0, 3.3.0, 2.8.6, 2.9.3, 3.1.3, 3.2.2
> Reporter: Wei-Chiu Chuang
> Priority: Critical
>
> HADOOP-16582 changed behavior of {{mkdirs()}}
> Some Hive tests depend on the old behavior and they fail miserably.
> {quote}
> earlier:
> all plain mkdirs(somePath) were fast-tracked to FileSystem.mkdirs which have
> rerouted them to mkdirs(somePath, somePerm) method with some defaults (which
> were static)
> an implementation of FileSystem have only needed implement "mkdirs(somePath,
> somePerm)" - because the other was not neccessarily called if it was always
> in a FilterFileSystem or something like that
> now:
> especially FilterFileSystem forwards the call of mkdirs(p) to the actual fs
> implementation...which may skip overriden mkdirs(somPath,somePerm) methods
> ...and could cause issues for existing FileSystem implementations
> {quote}
> File this jira to address this problem.
> [~kgyrtkirk] [[email protected]] [~kihwal]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]