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

S3AFileSystem removes Path when calling createS3Client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0, 3.3.1, 3.3.2, 3.3.3
    • 3.3.5
    • fs/s3

    Description

      when using hadoop and spark to read/write data from an s3 bucket like -> s3a://bucket/path and using a custom Credentials Provider, the path is removed from the s3a URI and the credentials provider fails because the full path is gone.

      In Spark 3.2,
      It was invoked as -> s3 = ReflectionUtils.newInstance(s3ClientFactoryClass, conf)
      .createS3Client(name, bucket, credentials); 

      But In spark 3.3.3
      It is invoked as s3 = ReflectionUtils.newInstance(s3ClientFactoryClass, conf).createS3Client(getUri(), parameters);
      the getUri() removes the path from the s3a URI

      Attachments

        Issue Links

          Activity

            People

              ashutoshpant Ashutosh Pant
              ashutoshpant Ashutosh Pant
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 50m
                  3h 50m