Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.2
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: fs/s3
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      S3a users System.getProperty("user.name") to get the username for the homedir. This is wrong, as it doesn't work on a YARN app where the identity is set by HADOOP_USER_NAME, or in a doAs clause.

      Obviously, UGI.getCurrentUser.getShortname() provides that name, everywhere.

      This is a simple change in the source, though testing is harder ... probably best to try in a doAs

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: