[
https://issues.apache.org/jira/browse/HADOOP-18330?focusedWorklogId=790202&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-790202
]
ASF GitHub Bot logged work on HADOOP-18330:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 12/Jul/22 21:48
Start Date: 12/Jul/22 21:48
Worklog Time Spent: 10m
Work Description: ashutoshpant opened a new pull request, #4557:
URL: https://github.com/apache/hadoop/pull/4557
First of all, sorry for the multiple PR's, it's because i cant push from my
device because of security reasons and have to use https://github.dev/
### Description of PR
Added a new parameter object (pathUrl) that holds the full s3a path
### How was this patch tested?
- Ran all the tests successfully using `mvn clean compile package`.
- Used the jar from above step to successfully read/write to an S3 bucket in
us-east. Repeated this 3 times.
### For code changes:
- [ X] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
Issue Time Tracking
-------------------
Worklog Id: (was: 790202)
Time Spent: 40m (was: 0.5h)
> 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: 40m
> 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]