Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions flink-filesystems/flink-s3-fs-native/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-filesystems</artifactId>
<version>2.2-SNAPSHOT</version>
</parent>

<artifactId>flink-s3-fs-native</artifactId>
<name>Flink : FileSystems : S3 FS Native</name>
<packaging>jar</packaging>

<properties>
<aws.sdk.v2.version>2.25.64</aws.sdk.v2.version>
<japicmp.skip>true</japicmp.skip>
</properties>

<dependencies>
<!-- Flink core FileSystem API -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<!-- AWS SDK v2 (S3 + STS + auth) -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>${aws.sdk.v2.version}</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sts</artifactId>
<version>${aws.sdk.v2.version}</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>auth</artifactId>
<version>${aws.sdk.v2.version}</version>
</dependency>

<!-- test -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-test-utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

</project>


Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.fs.s3.nativev2;

import org.apache.flink.configuration.ConfigOption;
import org.apache.flink.configuration.ConfigOptions;
import org.apache.flink.configuration.MemorySize;

/** Configuration options for the native S3 file system. */
final class NativeS3Options {

private NativeS3Options() {}

static final ConfigOption<String> REGION =
ConfigOptions.key("s3.region").stringType().noDefaultValue();

static final ConfigOption<String> ENDPOINT =
ConfigOptions.key("s3.endpoint").stringType().noDefaultValue();

static final ConfigOption<Boolean> PATH_STYLE_ACCESS =
ConfigOptions.key("s3.path.style.access").booleanType().defaultValue(false);

static final ConfigOption<MemorySize> READ_CHUNK_SIZE =
ConfigOptions.key("s3.read.chunk-size")
.memoryType()
.defaultValue(MemorySize.ofMebiBytes(8));

static final ConfigOption<MemorySize> MULTIPART_PART_SIZE =
ConfigOptions.key("s3.upload.part.size")
.memoryType()
.defaultValue(MemorySize.ofMebiBytes(64));

static final ConfigOption<MemorySize> MULTIPART_THRESHOLD =
ConfigOptions.key("s3.upload.multipart.threshold")
.memoryType()
.defaultValue(MemorySize.ofMebiBytes(64));
}
Loading
Loading