You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2019/05/03 16:28:01 UTC

[jira] [Commented] (HADOOP-16291) HDFS Permissions Guide appears incorrect about getFileStatus()/getFileInfo()

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

Daryn Sharp commented on HADOOP-16291:
--------------------------------------

Docs are correct.  That's the HA state check, not a permissions check.

> HDFS Permissions Guide appears incorrect about getFileStatus()/getFileInfo()
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-16291
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16291
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: documentation
>            Reporter: Aaron Fabbri
>            Priority: Minor
>              Labels: newbie
>
> Fix some errors in the HDFS Permissions doc.
> Noticed this when reviewing HADOOP-16251. The FS Permissions [documentation|https://hadoop.apache.org/docs/r3.2.0/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html] seems to mark a lot of permissions as Not Applicable (N/A) when that is not the case. In particular getFileInfo (getFileStatus) checks READ permission bit [here|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java#L3202-L3204], as it should.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org