[ 
https://issues.apache.org/jira/browse/HADOOP-18330?focusedWorklogId=791555&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-791555
 ]

ASF GitHub Bot logged work on HADOOP-18330:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Jul/22 19:02
            Start Date: 15/Jul/22 19:02
    Worklog Time Spent: 10m 
      Work Description: ashutoshpant commented on PR #4557:
URL: https://github.com/apache/hadoop/pull/4557#issuecomment-1185824626

   > changes look great; no more suggestions.
   > 
   > now, testing diligence.
   > 
   > Which aws region did you run the hadoop-aws integration tests against, 
what where the cli settings?
   > 
   > this isn't just to put homework on you, the more people testing with 
different configs, the more likely we are to find failures before they ship.
   > 
   > +1 pending those aws-test results
   AWS Region: us-east-1
   IT test command:   mvn -Dparallel-tests -DtestsThreadCount=8 clean verify
   other test: mvn clean test
   Settings used:
   ```<configuration>
   
       <property>
           <name>test.fs.s3a.name</name>
           <value>s3a://test-hadoop1/</value>
       </property>
   
       <property>
           <name>fs.contract.test.fs.s3a</name>
           <value>${test.fs.s3a.name}</value>
       </property>
   
       <property>
           <name>fs.s3a.access.key</name>
           <description>AWS access key ID. Omit for IAM role-based 
authentication.</description>
           <value></value>
       </property>
   
       <property>
           <name>fs.s3a.secret.key</name>
           <description>AWS secret key. Omit for IAM role-based 
authentication.</description>
           <value></value>
       </property>
   
       <property>
           <name>fs.s3a.endpoint</name>
           <value>s3.us-east-1.amazonaws.com</value>
       </property>
   
       <property>
           <name>test.fs.s3a.encryption.enabled</name>
           <value>false</value>
       </property>
   
       <property>
           <name>test.fs.s3a.sts.enabled</name>
           <value>false</value>
       </property>
   
   </configuration>
   




Issue Time Tracking
-------------------

    Worklog Id:     (was: 791555)
    Time Spent: 1h 50m  (was: 1h 40m)

> S3AFileSystem removes Path when calling createS3Client
> ------------------------------------------------------
>
>                 Key: HADOOP-18330
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18330
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/s3
>    Affects Versions: 3.3.0, 3.3.1, 3.3.2, 3.3.3
>            Reporter: Ashutosh Pant
>            Assignee: Ashutosh Pant
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> 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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to