2014-09-01 13:20:47 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Licensed 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. See accompanying LICENSE file.
|
|
|
|
-->
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2014-12-16 06:04:36 -05:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2014-09-01 13:20:47 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-project</artifactId>
|
2017-06-29 20:57:40 -04:00
|
|
|
<version>3.0.0-beta1-SNAPSHOT</version>
|
2014-09-01 13:20:47 -04:00
|
|
|
<relativePath>../../hadoop-project</relativePath>
|
|
|
|
</parent>
|
|
|
|
<artifactId>hadoop-aws</artifactId>
|
2017-06-29 20:57:40 -04:00
|
|
|
<version>3.0.0-beta1-SNAPSHOT</version>
|
2014-09-01 13:20:47 -04:00
|
|
|
<name>Apache Hadoop Amazon Web Services support</name>
|
|
|
|
<description>
|
|
|
|
This module contains code to support integration with Amazon Web Services.
|
|
|
|
It also declares the dependencies needed to work with AWS services.
|
|
|
|
</description>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<file.encoding>UTF-8</file.encoding>
|
|
|
|
<downloadSources>true</downloadSources>
|
2016-05-13 05:46:15 -04:00
|
|
|
<hadoop.tmp.dir>${project.build.directory}/test</hadoop.tmp.dir>
|
2016-10-18 14:33:38 -04:00
|
|
|
|
|
|
|
<!-- are scale tests enabled ? -->
|
|
|
|
<fs.s3a.scale.test.enabled>unset</fs.s3a.scale.test.enabled>
|
|
|
|
<!-- Size in MB of huge files. -->
|
|
|
|
<fs.s3a.scale.test.huge.filesize>unset</fs.s3a.scale.test.huge.filesize>
|
|
|
|
<!-- Size in MB of the partion size in huge file uploads. -->
|
|
|
|
<fs.s3a.scale.test.huge.partitionsize>unset</fs.s3a.scale.test.huge.partitionsize>
|
|
|
|
<!-- Timeout in seconds for scale tests.-->
|
|
|
|
<fs.s3a.scale.test.timeout>3600</fs.s3a.scale.test.timeout>
|
2014-09-01 13:20:47 -04:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>tests-off</id>
|
|
|
|
<activation>
|
|
|
|
<file>
|
|
|
|
<missing>src/test/resources/auth-keys.xml</missing>
|
|
|
|
</file>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
2016-08-23 10:18:49 -04:00
|
|
|
<skipITs>true</skipITs>
|
2014-09-01 13:20:47 -04:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>tests-on</id>
|
|
|
|
<activation>
|
|
|
|
<file>
|
|
|
|
<exists>src/test/resources/auth-keys.xml</exists>
|
|
|
|
</file>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
2016-08-23 10:18:49 -04:00
|
|
|
<skipITs>false</skipITs>
|
2014-09-01 13:20:47 -04:00
|
|
|
</properties>
|
|
|
|
</profile>
|
2016-05-13 05:46:15 -04:00
|
|
|
<profile>
|
|
|
|
<id>parallel-tests</id>
|
2016-08-23 10:18:49 -04:00
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>parallel-tests</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
2016-05-13 05:46:15 -04:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-parallel-tests-dirs</id>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<script language="javascript"><![CDATA[
|
|
|
|
var baseDirs = [
|
|
|
|
"${test.build.data}",
|
|
|
|
"${test.build.dir}",
|
|
|
|
"${hadoop.tmp.dir}" ];
|
|
|
|
for (var i in baseDirs) {
|
|
|
|
for (var j = 1; j <= ${testsThreadCount}; ++j) {
|
|
|
|
var mkdir = project.createTask("mkdir");
|
|
|
|
mkdir.setDir(new java.io.File(baseDirs[i], j));
|
|
|
|
mkdir.perform();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]]></script>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
2016-08-23 10:18:49 -04:00
|
|
|
<configuration>
|
|
|
|
<forkCount>${testsThreadCount}</forkCount>
|
|
|
|
<reuseForks>false</reuseForks>
|
|
|
|
<argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
|
|
|
|
<systemPropertyVariables>
|
|
|
|
<test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
|
|
|
|
<test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
|
|
|
|
<hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
|
|
|
|
|
|
|
|
<!-- Due to a Maven quirk, setting this to just -->
|
|
|
|
<!-- surefire.forkNumber won't do the parameter -->
|
|
|
|
<!-- substitution. Putting a prefix in front of it like -->
|
|
|
|
<!-- "fork-" makes it work. -->
|
|
|
|
<test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
|
2016-10-18 14:33:38 -04:00
|
|
|
<!-- Propagate scale parameters -->
|
|
|
|
<fs.s3a.scale.test.enabled>${fs.s3a.scale.test.enabled}</fs.s3a.scale.test.enabled>
|
|
|
|
<fs.s3a.scale.test.huge.filesize>${fs.s3a.scale.test.huge.filesize}</fs.s3a.scale.test.huge.filesize>
|
|
|
|
<fs.s3a.scale.test.huge.huge.partitionsize>${fs.s3a.scale.test.huge.partitionsize}</fs.s3a.scale.test.huge.huge.partitionsize>
|
|
|
|
<fs.s3a.scale.test.timeout>${fs.s3a.scale.test.timeout}</fs.s3a.scale.test.timeout>
|
2016-08-23 10:18:49 -04:00
|
|
|
</systemPropertyVariables>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
2016-05-13 05:46:15 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2016-08-23 10:18:49 -04:00
|
|
|
<id>default-integration-test</id>
|
2016-05-13 05:46:15 -04:00
|
|
|
<goals>
|
2016-08-23 10:18:49 -04:00
|
|
|
<goal>integration-test</goal>
|
|
|
|
<goal>verify</goal>
|
2016-05-13 05:46:15 -04:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<forkCount>${testsThreadCount}</forkCount>
|
|
|
|
<reuseForks>false</reuseForks>
|
|
|
|
<argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
|
2016-10-18 14:33:38 -04:00
|
|
|
<forkedProcessTimeoutInSeconds>${fs.s3a.scale.test.timeout}</forkedProcessTimeoutInSeconds>
|
2016-05-13 05:46:15 -04:00
|
|
|
<systemPropertyVariables>
|
2016-10-18 14:33:38 -04:00
|
|
|
<!-- Tell tests that they are being executed in parallel -->
|
|
|
|
<test.parallel.execution>true</test.parallel.execution>
|
2016-05-13 05:46:15 -04:00
|
|
|
<test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
|
|
|
|
<test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
|
|
|
|
<hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
|
2014-09-01 13:20:47 -04:00
|
|
|
|
2016-05-13 05:46:15 -04:00
|
|
|
<!-- Due to a Maven quirk, setting this to just -->
|
|
|
|
<!-- surefire.forkNumber won't do the parameter -->
|
|
|
|
<!-- substitution. Putting a prefix in front of it like -->
|
|
|
|
<!-- "fork-" makes it work. -->
|
|
|
|
<test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
|
2016-10-18 14:33:38 -04:00
|
|
|
<!-- Propagate scale parameters -->
|
|
|
|
<fs.s3a.scale.test.enabled>${fs.s3a.scale.test.enabled}</fs.s3a.scale.test.enabled>
|
|
|
|
<fs.s3a.scale.test.huge.filesize>${fs.s3a.scale.test.huge.filesize}</fs.s3a.scale.test.huge.filesize>
|
|
|
|
<fs.s3a.scale.test.huge.huge.partitionsize>${fs.s3a.scale.test.huge.partitionsize}</fs.s3a.scale.test.huge.huge.partitionsize>
|
|
|
|
<fs.s3a.scale.test.timeout>${fs.s3a.scale.test.timeout}</fs.s3a.scale.test.timeout>
|
2016-05-13 05:46:15 -04:00
|
|
|
</systemPropertyVariables>
|
|
|
|
<!-- Some tests cannot run in parallel. Tests that cover -->
|
|
|
|
<!-- access to the root directory must run in isolation -->
|
|
|
|
<!-- from anything else that could modify the bucket. -->
|
|
|
|
<!-- S3A tests that cover multi-part upload must run in -->
|
|
|
|
<!-- isolation, because the file system is configured to -->
|
|
|
|
<!-- purge existing multi-part upload data on -->
|
|
|
|
<!-- initialization. MiniYARNCluster has not yet been -->
|
|
|
|
<!-- changed to handle parallel test execution gracefully. -->
|
|
|
|
<!-- Exclude all of these tests from parallel execution, -->
|
|
|
|
<!-- and instead run them sequentially in a separate -->
|
|
|
|
<!-- Surefire execution step later. -->
|
2016-08-23 10:18:49 -04:00
|
|
|
<includes>
|
|
|
|
<include>**/ITest*.java</include>
|
|
|
|
</includes>
|
2016-05-13 05:46:15 -04:00
|
|
|
<excludes>
|
2016-08-23 10:18:49 -04:00
|
|
|
<exclude>**/ITestJets3tNativeS3FileSystemContract.java</exclude>
|
2017-04-19 05:21:44 -04:00
|
|
|
<exclude>**/ITestS3AContractRootDir.java</exclude>
|
|
|
|
<exclude>**/ITestS3NContractRootDir.java</exclude>
|
2016-10-18 14:33:38 -04:00
|
|
|
<exclude>**/ITestS3AFileContextStatistics.java</exclude>
|
2017-04-24 15:15:42 -04:00
|
|
|
<exclude>**/ITestS3AEncryptionSSEC*.java</exclude>
|
2017-03-07 01:14:55 -05:00
|
|
|
<exclude>**/ITestS3AHuge*.java</exclude>
|
2016-05-13 05:46:15 -04:00
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2016-08-23 10:18:49 -04:00
|
|
|
<id>sequential-integration-tests</id>
|
2016-05-13 05:46:15 -04:00
|
|
|
<goals>
|
2016-08-23 10:18:49 -04:00
|
|
|
<goal>integration-test</goal>
|
|
|
|
<goal>verify</goal>
|
2016-05-13 05:46:15 -04:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2016-10-18 14:33:38 -04:00
|
|
|
<forkedProcessTimeoutInSeconds>${fs.s3a.scale.test.timeout}</forkedProcessTimeoutInSeconds>
|
|
|
|
<systemPropertyVariables>
|
|
|
|
<!-- Tell tests that they are being executed sequentially -->
|
|
|
|
<test.parallel.execution>false</test.parallel.execution>
|
|
|
|
<!-- Propagate scale parameters -->
|
|
|
|
<fs.s3a.scale.test.enabled>${fs.s3a.scale.test.enabled}</fs.s3a.scale.test.enabled>
|
|
|
|
<fs.s3a.scale.test.huge.filesize>${fs.s3a.scale.test.huge.filesize}</fs.s3a.scale.test.huge.filesize>
|
|
|
|
<fs.s3a.scale.test.huge.huge.partitionsize>${fs.s3a.scale.test.huge.partitionsize}</fs.s3a.scale.test.huge.huge.partitionsize>
|
|
|
|
<fs.s3a.scale.test.timeout>${fs.s3a.scale.test.timeout}</fs.s3a.scale.test.timeout>
|
|
|
|
</systemPropertyVariables>
|
2016-05-13 05:46:15 -04:00
|
|
|
<!-- Do a sequential run for tests that cannot handle -->
|
|
|
|
<!-- parallel execution. -->
|
|
|
|
<includes>
|
2016-08-23 10:18:49 -04:00
|
|
|
<include>**/ITestJets3tNativeS3FileSystemContract.java</include>
|
2017-04-19 05:21:44 -04:00
|
|
|
<include>**/ITestS3AContractRootDir.java</include>
|
|
|
|
<include>**/ITestS3NContractRootDir.java</include>
|
2016-10-18 14:33:38 -04:00
|
|
|
<include>**/ITestS3AFileContextStatistics.java</include>
|
|
|
|
<include>**/ITestS3AHuge*.java</include>
|
2017-04-24 15:15:42 -04:00
|
|
|
<include>**/ITestS3AEncryptionSSEC*.java</include>
|
2016-05-13 05:46:15 -04:00
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2016-08-23 10:18:49 -04:00
|
|
|
<profile>
|
|
|
|
<id>sequential-tests</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>!parallel-tests</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
<goal>verify</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2016-10-18 14:33:38 -04:00
|
|
|
<systemPropertyVariables>
|
|
|
|
<!-- Propagate scale parameters -->
|
|
|
|
<fs.s3a.scale.test.enabled>${fs.s3a.scale.test.enabled}</fs.s3a.scale.test.enabled>
|
|
|
|
<fs.s3a.scale.test.huge.filesize>${fs.s3a.scale.test.huge.filesize}</fs.s3a.scale.test.huge.filesize>
|
|
|
|
<fs.s3a.scale.test.timeout>${fs.s3a.scale.test.timeout}</fs.s3a.scale.test.timeout>
|
|
|
|
</systemPropertyVariables>
|
|
|
|
<forkedProcessTimeoutInSeconds>${fs.s3a.scale.test.timeout}</forkedProcessTimeoutInSeconds>
|
2016-08-23 10:18:49 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2016-10-18 14:33:38 -04:00
|
|
|
|
|
|
|
<!-- Turn on scale tests-->
|
|
|
|
<profile>
|
|
|
|
<id>scale</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>scale</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties >
|
|
|
|
<fs.s3a.scale.test.enabled>true</fs.s3a.scale.test.enabled>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
2014-09-01 13:20:47 -04:00
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
|
|
<xmlOutput>true</xmlOutput>
|
|
|
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
|
|
|
</excludeFilterFile>
|
|
|
|
<effort>Max</effort>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2014-11-05 20:17:04 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<forkedProcessTimeoutInSeconds>3600</forkedProcessTimeoutInSeconds>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2016-03-02 16:13:36 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>deplist</id>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>list</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<!-- build a shellprofile -->
|
|
|
|
<outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-optional.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2014-09-01 13:20:47 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
2017-08-04 06:09:08 -04:00
|
|
|
<scope>provided</scope>
|
2014-09-01 13:20:47 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
2014-09-26 00:56:26 -04:00
|
|
|
<scope>test</scope>
|
2014-09-01 13:20:47 -04:00
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
2017-02-27 23:47:44 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>net.java.dev.jets3t</groupId>
|
|
|
|
<artifactId>jets3t</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2014-09-01 13:20:47 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.amazonaws</groupId>
|
2017-02-16 19:51:03 -05:00
|
|
|
<artifactId>aws-java-sdk-bundle</artifactId>
|
2014-09-01 13:20:47 -04:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2016-06-09 15:58:30 -04:00
|
|
|
<dependency>
|
2014-09-01 13:20:47 -04:00
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-09-06 12:36:21 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-all</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-01-12 15:18:33 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-mapreduce-client-jobclient</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-yarn-server-tests</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-mapreduce-examples</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
2016-05-20 07:21:35 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-distcp</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-distcp</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
2014-09-01 13:20:47 -04:00
|
|
|
</dependencies>
|
|
|
|
</project>
|