[ https://issues.apache.org/jira/browse/HDFS-6446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14067847#comment-14067847 ]
Abhiraj Butala commented on HDFS-6446: -------------------------------------- Hey [~yeshavora], I am not able to reproduce this issue on latest hadoop trunk. Following are some outputs: {code} abutala@abutala-vBox:/mnt/hdfs$ mount | grep hdfs 127.0.1.1:/ on /mnt/hdfs type nfs (rw,vers=3,proto=tcp,nolock,addr=127.0.1.1) abutala@abutala-vBox:/mnt/hdfs$ ls -lh total 512 -rw-r--r-- 1 abutala supergroup 12M Jul 19 11:36 abc.txt drwxr-xr-x 3 abutala supergroup 96 Jul 19 12:10 temp abutala@abutala-vBox:/mnt/hdfs$ cp ~/work/hbase/hbase.tar.gz abc.txt cp: cannot create regular file `abc.txt': Permission denied abutala@abutala-vBox:/mnt/hdfs$ cat ~/work/hbase/hbase.tar.gz >> abc.txt cat: write error: Permission denied {code} Am I missing anything? Or perhaps the issue got fixed recently? Let me know if you can still reproduce it. Thank you! > NFS: Different error messages for appending/writing data from read only mount > ----------------------------------------------------------------------------- > > Key: HDFS-6446 > URL: https://issues.apache.org/jira/browse/HDFS-6446 > Project: Hadoop HDFS > Issue Type: Bug > Components: nfs > Affects Versions: 2.2.0 > Reporter: Yesha Vora > > steps: > 1) set dfs.nfs.exports.allowed.hosts = <nfs_client> ro > 2) Restart nfs server > 3) Append data on file present on hdfs from read only mount point > Append data > {noformat} > bash$ cat /tmp/tmp_10MB.txt >> /tmp/tmp_mnt/expected_data_stream > cat: write error: Input/output error > {noformat} > 4) Write data from read only mount point > Copy data > {noformat} > bash$ cp /tmp/tmp_10MB.txt /tmp/tmp_mnt/tmp/ > cp: cannot create regular file `/tmp/tmp_mnt/tmp/tmp_10MB.txt': Permission > denied > {noformat} > Both operations are treated differently. Copying data returns valid error > message: 'Permission denied' . Though append data does not return valid error > message -- This message was sent by Atlassian JIRA (v6.2#6252)