Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17566 Über-jira: S3A Hadoop 3.3.2 features
  3. HADOOP-17705

S3A to add option fs.s3a.endpoint.region to set AWS region

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.2
    • fs/s3

    Description

      Currently, AWS region is either constructed via the endpoint URL, by making an assumption that the 2nd component after delimiter "." is the region in endpoint URL, which doesn't work for private links and sets the default to us-east-1 thus causing authorization issue w.r.t the private link.

      The option fs.s3a.endpoint.region allows this to be explicitly set

      how to set the s3 region on older hadoop releases

      For anyone who needs to set the signing region on older versions of the s3a client you do not need this festure. instead just provide a custom endpoint to region mapping json file

      1. Download the default region mapping file awssdk_config_default.json
      2. Add a new regular expression to map the endpoint/hostname to the target region
      3. Save the file as /etc/hadoop/conf/awssdk_config_override.json
      4. verify basic hadop fs -ls commands work
      5. copy to the rest of the cluster.
      6. There should be no need to restart any services

      Attachments

        Issue Links

          Activity

            People

              mehakmeetSingh Mehakmeet Singh
              mehakmeetSingh Mehakmeet Singh
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h
                  3h