[ 
https://issues.apache.org/jira/browse/HADOOP-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550706
 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-2371:
------------------------------------------------

- User Identity
The commands `whoami` for username and `bash -c groups` for groups are used 
since they are more portable.  Also, almost all the Unix commands using in 
Hadoop can be found in org.apache.hadoop.fs.ShellCommand.  (other Unix command 
should be moved there later.)

Related jire: HADOOP-2229, HADOOP-2368

- Changes to the Client API
It may be better to call it "Changes to the FileSystem API" since they are 
defined there.  Also, the actual method signatures are 
{code}
org.apache.hadoop.fs.FileSystem

  public FSDataOutputStream create(Path f,
      FsPermission permission,
      boolean overwrite,
      int bufferSize,
      short replication,
      long blockSize,
      Progressable progress) throws IOException

  public void setPermission(Path p, FsPermission permission
      ) throws IOException

  public void setOwner(Path p, String username, String groupname
      ) throws IOException

  public FileStatus getFileStatus(Path f) throws IOException
{code}
Related jire: HADOOP-2288, HADOOP-2381

> Candidate user guide for permissions feature of Hadoop DFS
> ----------------------------------------------------------
>
>                 Key: HADOOP-2371
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2371
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: dfs
>    Affects Versions: 0.16.0
>            Reporter: Robert Chansler
>            Assignee: Robert Chansler
>             Fix For: 0.16.0
>
>         Attachments: Grid_HadoopPermissionsUserGuide1.pdf
>
>
> This feature introduces a POSIX-like permissions model for DFS in Hadoop 
> 0.16. The user guide describes the behavior users of DFS will experience. In 
> this release, the user identity model is very elementary: you are who your 
> host says you are. It is understood that this is not "secure" in any 
> meaningful sense, but rather the permissions model allows a cooperative 
> community to share file system resources in an organized fashion. The user 
> identity model will evolve in the coming months.
> As mentioned in the draft, the content of the guide will be incorporated into 
> the regular Hadoop documentation from Forrest. This document is being 
> published as an early preview.

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

Reply via email to