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.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • fs
    • None
    • 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. HADOOP-11321.003.patch
          29 kB
          Chris Nauroth
        2. HADOOP-11321.004.patch
          29 kB
          Chris Nauroth
        3. HADOOP-11321.005.patch
          29 kB
          Chris Nauroth
        4. HADOOP-11321.006.patch
          31 kB
          Chris Nauroth
        5. HADOOP-11321.007.patch
          31 kB
          Chris Nauroth
        6. HADOOP-11321.008.patch
          31 kB
          Chris Nauroth
        7. HADOOP-11321.1.patch
          6 kB
          Chris Nauroth
        8. HADOOP-11321.2.patch
          6 kB
          Chris Nauroth
        9. winutils.tmp.patch
          4 kB
          Chris Nauroth

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment