Closed loustler closed 2 months ago
Yes. We did clean in #7332 . But seem like not cleaned up. Thanks @loustler ! cc @Carl-Zhou-CN
@loustler Could you please help me globally search for 'org.apache.hadoop.fs.aliyun.oss.AliyunCredentialsProvider' and completely remove this configuration? Thank you very much for your help.
@Carl-Zhou-CN
A fs.oss.credentials.provider
found in some tests
A org.apache.hadoop.fs.aliyun.oss.AliyunCredentialsProvider
found in some documents and tests
I found those by IntelliJ.
Should I change this? https://github.com/apache/seatunnel/blob/c6f627fa38d29f83bccb3e1fb86e8962b64dad4e/docs/en/seatunnel-engine/checkpoint-storage.md?plain=1#L51
I think it can be removed from the test case, @Hisoka-X what do you think?
I think it can be removed from the test case, @Hisoka-X what do you think?
yes.
@Carl-Zhou-CN @Hisoka-X Removed it from test codes
Purpose of this pull request
Remove a
fs.oss.credentials.provider
configuration from checkpoint with OSS storage. Because if it provided into a hadoop configuration, it trying to find a constructor has ofURL
andConfiguration
, and it throws a exception. Because aAliyunCredentialsProvider
class only have a single constructor which requires aConfiguration
class. It leads users like me to be confused/misunderstood, so we need to fix documents about it for users.These are all release hadoop-aliyun source codes about load a credential provider Hadoop 3.1.4
https://github.com/apache/hadoop/blob/1e877761e8dadd71effef30e592368f7fe66a61b/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSUtils.java#L105-L141
https://github.com/apache/hadoop/blob/1e877761e8dadd71effef30e592368f7fe66a61b/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunCredentialsProvider.java#L35-L67
Hadoop 3.3.6
https://github.com/apache/hadoop/blob/1be78238728da9266a4f88195058f08fd012bf9c/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSUtils.java#L106-L143
https://github.com/apache/hadoop/blob/1be78238728da9266a4f88195058f08fd012bf9c/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunCredentialsProvider.java#L35-L67
Error stacktrace
Does this PR introduce any user-facing change?
YES
How was this patch tested?
It tested with release 2.3.7 with OSS
Check list
release-note
.