hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6521) FsPermission:SetUMask not updated to use new-style umask setting.
Date Mon, 01 Feb 2010 22:39:18 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12828312#action_12828312
] 

Suresh Srinivas commented on HADOOP-6521:
-----------------------------------------

Ran some manual tests just to verify the fix. Set in the hdfs-site.xml "dfs.umaskmode" as
077 and run the following tests:
# bin/hadoop dfs -put /tmp/test /tmp/test; bin/hadoop dfs -ls /tmp/test;bin/hadoop dfs -rmr
/tmp/test
#* File mode should be {{\-rw-------}}
# bin/hadoop dfs -Ddfs.umask=18 -put /tmp/test /tmp/test; bin/hadoop dfs -ls /tmp/test;bin/hadoop
dfs -rmr /tmp/test
#* File mode should be {{\-rw-r-\-r--}}
# bin/hadoop dfs -Ddfs.umaskmode=222 -put /tmp/test /tmp/test; bin/hadoop dfs -ls /tmp/test;bin/hadoop
dfs -rmr /tmp/test
#* File mode should be {{\-r-\-r-\-r--}}




> FsPermission:SetUMask not updated to use new-style umask setting.
> -----------------------------------------------------------------
>
>                 Key: HADOOP-6521
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6521
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Jakob Homan
>         Attachments: hadoop-6521.rel20.patch
>
>
> FsPermission:
> 221   /** Set the user file creation mask (umask) */
> 222   public static void setUMask(Configuration conf, FsPermission umask) {         
                          
> 223     conf.setInt(UMASK_LABEL, umask.toShort());
> 224   }
> Needs to be updated to not use a decimal value. This is a bug introduced by HADOOP-6234.
 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message