Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11321

copyToLocal cannot save a file to an SMB share unless the user has Full Control permissions.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: fs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      In Hadoop 2, it is impossible to use copyToLocal to copy a file from HDFS to a destination on an SMB share. This is because in Hadoop 2, the copyToLocal maps to 2 underlying RawLocalFileSystem operations: create and setPermission. On an SMB share, the user may be authorized for the create but denied for the setPermission. Windows denies the WRITE_DAC right required by setPermission unless the user has Full Control permissions. Granting Full Control isn't feasible for most deployments, because it's insecure. This is a regression from Hadoop 1, where copyToLocal only did a create and didn't do a separate setPermission.

        Attachments

        1. winutils.tmp.patch
          4 kB
          Chris Nauroth
        2. HADOOP-11321.2.patch
          6 kB
          Chris Nauroth
        3. HADOOP-11321.1.patch
          6 kB
          Chris Nauroth
        4. HADOOP-11321.008.patch
          31 kB
          Chris Nauroth
        5. HADOOP-11321.007.patch
          31 kB
          Chris Nauroth
        6. HADOOP-11321.006.patch
          31 kB
          Chris Nauroth
        7. HADOOP-11321.005.patch
          29 kB
          Chris Nauroth
        8. HADOOP-11321.004.patch
          29 kB
          Chris Nauroth
        9. HADOOP-11321.003.patch
          29 kB
          Chris Nauroth

          Issue Links

            Activity

              People

              • Assignee:
                cnauroth Chris Nauroth
                Reporter:
                cnauroth Chris Nauroth
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: