File tree Expand file tree Collapse file tree 5 files changed +11
-12
lines changed
hadoop-tools/hadoop-aws/src
main/java/org/apache/hadoop/fs/s3a/impl
test/java/org/apache/hadoop/fs/s3a/impl/streams Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 219
219
<aws-java-sdk .version>1.12.720</aws-java-sdk .version>
220
220
<aws-java-sdk-v2 .version>2.29.52</aws-java-sdk-v2 .version>
221
221
<amazon-s3-encryption-client-java .version>3.1.1</amazon-s3-encryption-client-java .version>
222
- <amazon-s3-analyticsaccelerator-s3 .version>1.2.1 </amazon-s3-analyticsaccelerator-s3 .version>
222
+ <amazon-s3-analyticsaccelerator-s3 .version>1.3.0 </amazon-s3-analyticsaccelerator-s3 .version>
223
223
<aws .eventstream.version>1.0.1</aws .eventstream.version>
224
224
<hsqldb .version>2.7.1</hsqldb .version>
225
225
<frontend-maven-plugin .version>1.11.2</frontend-maven-plugin .version>
Original file line number Diff line number Diff line change @@ -993,10 +993,10 @@ public InputStreamType streamType() {
993
993
private class FactoryCallbacks implements StreamFactoryCallbacks {
994
994
995
995
@ Override
996
- public S3AsyncClient getOrCreateAsyncClient ( final boolean requireCRT ) throws IOException {
996
+ public S3Client getOrCreateSyncClient ( ) throws IOException {
997
997
// Needs support of the CRT before the requireCRT can be used
998
998
LOG .debug ("Stream factory requested async client" );
999
- return clientManager ().getOrCreateAsyncClient ();
999
+ return clientManager ().getOrCreateS3Client ();
1000
1000
}
1001
1001
1002
1002
@ Override
Original file line number Diff line number Diff line change 23
23
24
24
import org .slf4j .Logger ;
25
25
import org .slf4j .LoggerFactory ;
26
- import software . amazon . s3 . analyticsaccelerator . S3SdkObjectClient ;
26
+
27
27
import software .amazon .s3 .analyticsaccelerator .S3SeekableInputStreamConfiguration ;
28
28
import software .amazon .s3 .analyticsaccelerator .S3SeekableInputStreamFactory ;
29
+ import software .amazon .s3 .analyticsaccelerator .S3SyncSdkObjectClient ;
29
30
import software .amazon .s3 .analyticsaccelerator .common .ConnectorConfiguration ;
30
31
31
32
import org .apache .hadoop .conf .Configuration ;
@@ -118,7 +119,7 @@ private S3SeekableInputStreamFactory getOrCreateS3SeekableInputStreamFactory()
118
119
119
120
private CallableRaisingIOE <S3SeekableInputStreamFactory > createS3SeekableInputStreamFactory () {
120
121
return () -> new S3SeekableInputStreamFactory (
121
- new S3SdkObjectClient (callbacks ().getOrCreateAsyncClient ( requireCrt )),
122
+ new S3SyncSdkObjectClient (callbacks ().getOrCreateSyncClient ( )),
122
123
seekableInputStreamConfiguration );
123
124
}
124
125
Original file line number Diff line number Diff line change 20
20
21
21
import java .io .IOException ;
22
22
23
- import software .amazon .awssdk .services .s3 .S3AsyncClient ;
23
+ import software .amazon .awssdk .services .s3 .S3Client ;
24
24
25
25
import org .apache .hadoop .fs .s3a .Statistic ;
26
26
import org .apache .hadoop .fs .StreamCapabilities ;
@@ -80,12 +80,11 @@ ObjectInputStream readObject(ObjectReadParameters parameters)
80
80
interface StreamFactoryCallbacks {
81
81
82
82
/**
83
- * Get the Async S3Client, raising a failure to create as an IOException.
84
- * @param requireCRT is the CRT required.
83
+ * Get the Sync S3Client, raising a failure to create as an IOException.
85
84
* @return the Async S3 client
86
85
* @throws IOException failure to create the client.
87
86
*/
88
- S3AsyncClient getOrCreateAsyncClient ( boolean requireCRT ) throws IOException ;
87
+ S3Client getOrCreateSyncClient ( ) throws IOException ;
89
88
90
89
void incrementFactoryStatistic (Statistic statistic );
91
90
}
Original file line number Diff line number Diff line change 23
23
24
24
import org .apache .hadoop .fs .s3a .Statistic ;
25
25
import org .junit .jupiter .api .Test ;
26
- import software .amazon .awssdk .services .s3 .S3AsyncClient ;
27
26
28
27
import org .apache .hadoop .conf .Configuration ;
29
28
import org .apache .hadoop .fs .s3a .VectoredIOContext ;
30
29
import org .apache .hadoop .fs .s3a .prefetch .PrefetchingInputStreamFactory ;
31
30
import org .apache .hadoop .test .AbstractHadoopTestBase ;
31
+ import software .amazon .awssdk .services .s3 .S3Client ;
32
32
33
33
import static org .apache .hadoop .fs .s3a .Constants .INPUT_STREAM_CUSTOM_FACTORY ;
34
34
import static org .apache .hadoop .fs .s3a .Constants .INPUT_STREAM_TYPE ;
@@ -329,9 +329,8 @@ public FactoryFailsToInstantiate() {
329
329
* Callbacks from {@link ObjectInputStreamFactory} instances.
330
330
*/
331
331
private static final class Callbacks implements ObjectInputStreamFactory .StreamFactoryCallbacks {
332
-
333
332
@ Override
334
- public S3AsyncClient getOrCreateAsyncClient ( final boolean requireCRT ) throws IOException {
333
+ public S3Client getOrCreateSyncClient ( ) throws IOException {
335
334
throw new UnsupportedOperationException ("not implemented" );
336
335
}
337
336
You can’t perform that action at this time.
0 commit comments