[ 
https://issues.apache.org/jira/browse/HDFS-6445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Li resolved HDFS-6445.
------------------------------
    Resolution: Duplicate

> NFS: Add a log message 'Permission denied' while writing data from read only 
> mountpoint
> ---------------------------------------------------------------------------------------
>
>                 Key: HDFS-6445
>                 URL: https://issues.apache.org/jira/browse/HDFS-6445
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: nfs
>            Reporter: Yesha Vora
>            Assignee: Brandon Li
>
> Add a log message in NFS log file when a write operation is performed on read 
> only mount point
> steps:
> 1) set dfs.nfs.exports.allowed.hosts = <nfsclient> ro
> 2) Restart nfs server
> 3) Append data on file present on hdfs
> {noformat}
> bash: cat /tmp/tmp_10MB.txt >> /tmp/tmp_mnt/expected_data_stream
> cat: write error: Input/output error
> {noformat}
> The real reason for append operation failure is permission denied. It should 
> be printed in nfs logs. currently, nfs log prints below messages. 
> {noformat}
> 2014-05-22 21:50:56,068 DEBUG nfs3.RpcProgramNfs3 
> (RpcProgramNfs3.java:write(731)) - NFS WRITE fileId: 16493 offset: 7340032 
> length:1048576 stableHow:0 xid:1904385849
> 2014-05-22 21:50:56,076 DEBUG nfs3.RpcProgramNfs3 
> (RpcProgramNfs3.java:handleInternal(1936)) - 
> WRITE_RPC_CALL_START____1921163065
> 2014-05-22 21:50:56,078 DEBUG nfs3.RpcProgramNfs3 
> (RpcProgramNfs3.java:write(731)) - NFS WRITE fileId: 16493 offset: 8388608 
> length:1048576 stableHow:0 xid:1921163065
> 2014-05-22 21:50:56,086 DEBUG nfs3.RpcProgramNfs3 
> (RpcProgramNfs3.java:handleInternal(1936)) - 
> WRITE_RPC_CALL_START____1937940281
> 2014-05-22 21:50:56,087 DEBUG nfs3.RpcProgramNfs3 
> (RpcProgramNfs3.java:write(731)) - NFS WRITE fileId: 16493 offset: 9437184 
> length:1048576 stableHow:0 xid:1937940281
> 2014-05-22 21:50:56,091 DEBUG nfs3.RpcProgramNfs3 
> (RpcProgramNfs3.java:handleInternal(1936)) - 
> WRITE_RPC_CALL_START____1954717497
> 2014-05-22 21:50:56,091 DEBUG nfs3.RpcProgramNfs3 
> (RpcProgramNfs3.java:write(731)) - NFS WRITE fileId: 16493 offset: 10485760 
> length:168 stableHow:0 xid:1954717497
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to