Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6445

NFS: Add a log message 'Permission denied' while writing data from read only mountpoint

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: nfs
    • Labels:
      None

      Description

      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

      bash: cat /tmp/tmp_10MB.txt >> /tmp/tmp_mnt/expected_data_stream
      cat: write error: Input/output error
      

      The real reason for append operation failure is permission denied. It should be printed in nfs logs. currently, nfs log prints below messages.

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brandonli Brandon Li
                Reporter:
                yeshavora Yesha Vora
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: