hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10806) ndfs: need to implement umask, pass permission bits to hdfsCreateDirectory
Date Wed, 09 Jul 2014 19:45:06 GMT

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

Colin Patrick McCabe commented on HADOOP-10806:

This patch adds some code for parsing {{fs.permissions.umask-mode}} and sending permission
bits in the {{hdfsCreateDirectory}} rpc to the NameNode.  This fixes a bug whereby {{hdfsCreateDirectory}}
would fail with this message:
org.apache.hadoop.native.HadoopCore.IOException: conn_process_response: error com.google.protobuf.UninitializedMessageException:
Message missing required fields: masked.perm
        at com.google.protobuf.AbstractMessage$Builder.newUninitializedMessageException(AbstractMessage.java:770)

Clearly we'll also need this for the file write path, when we're creating new files.

We don't handle "fancy" {{fs.permissions.umask-mode}} values like "rw-r--r--" etc. yet.  It's
not too difficult to do that, but it's better to do it in a follow-on JIRA to avoid complicating
this one.  For now, we just deal with numeric umasks.

> ndfs: need to implement umask, pass permission bits to hdfsCreateDirectory
> --------------------------------------------------------------------------
>                 Key: HADOOP-10806
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10806
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: native
>    Affects Versions: HADOOP-10388
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-10806-pnative.001.patch
> We need to pass in permission bits to {{hdfsCreateDirectory}}.  Also, we need to read
{{fs.permissions.umask-mode}} so that we know what to mask off of the permission bits (umask
is always implemented client-side)

This message was sent by Atlassian JIRA

View raw message