2017-07-12 20:12:52 -04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<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/xsd/maven-4.0.0.xsd">
|
|
|
|
<!--
|
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
2017-07-06 17:13:26 -04:00
|
|
|
<artifactId>hbase-build-configuration</artifactId>
|
2017-07-12 20:12:52 -04:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<version>3.0.0-SNAPSHOT</version>
|
2017-07-06 17:13:26 -04:00
|
|
|
<relativePath>../hbase-build-configuration</relativePath>
|
2017-07-12 20:12:52 -04:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<artifactId>hbase-spark-it</artifactId>
|
|
|
|
<name>Apache HBase - Spark Integration Tests</name>
|
|
|
|
<description>Integration and System tests for HBase</description>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
2018-03-09 10:58:53 -05:00
|
|
|
<spark.version>2.1.1</spark.version>
|
|
|
|
<!-- The following version is in sync with Spark's choice
|
|
|
|
Please take caution when this version is modified -->
|
|
|
|
<scala.version>2.11.8</scala.version>
|
|
|
|
<scala.binary.version>2.11</scala.binary.version>
|
2017-07-12 20:12:52 -04:00
|
|
|
<!-- Test inclusion patterns used by failsafe configuration -->
|
|
|
|
<unittest.include>**/Test*.java</unittest.include>
|
|
|
|
<integrationtest.include>**/IntegrationTest*.java</integrationtest.include>
|
|
|
|
<!-- To Run Tests with a particular Xmx Value use -Dfailsafe.Xmx=XXXg -->
|
|
|
|
<failsafe.Xmx>4g</failsafe.Xmx>
|
|
|
|
<!-- To run a single integration test, use -Dit.test=IntegrationTestXXX -->
|
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<!-- Make a jar and put the sources in the jar -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<!--Make it so assembly:single does nothing in here-->
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skipAssembly>true</skipAssembly>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
<version>${surefire.version}</version>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven.surefire</groupId>
|
|
|
|
<artifactId>surefire-junit4</artifactId>
|
|
|
|
<version>${surefire.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>${integrationtest.include}</include>
|
|
|
|
</includes>
|
|
|
|
<excludes>
|
|
|
|
<exclude>${unittest.include}</exclude>
|
|
|
|
<exclude>**/*$*</exclude>
|
|
|
|
</excludes>
|
|
|
|
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
|
|
|
|
<failIfNoTests>false</failIfNoTests>
|
|
|
|
<testFailureIgnore>false</testFailureIgnore>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>integration-test</id>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>verify</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>verify</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<!-- Run integration tests with mvn verify -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skip>false</skip>
|
|
|
|
<forkMode>always</forkMode>
|
|
|
|
<!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
|
|
|
|
I believe it is a failsafe bug, we may consider using surefire -->
|
|
|
|
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
|
|
|
|
<argLine>-enableassertions -Xmx${failsafe.Xmx}
|
|
|
|
-Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
|
|
|
|
-verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<!-- hbase-spark is ok in this modules -->
|
|
|
|
<execution>
|
|
|
|
<id>banned-hbase-spark</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>banned-scala</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-12-10 16:18:03 -05:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-mrapp-generated-classpath</id>
|
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>build-classpath</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<!-- needed to run the unit test for DS to generate
|
|
|
|
the required classpath that is required in the env
|
|
|
|
of the launch container in the mini cluster
|
|
|
|
-->
|
|
|
|
<outputFile>${project.build.directory}/test-classes/spark-generated-classpath</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
2018-01-12 18:06:08 -05:00
|
|
|
<configuration>
|
|
|
|
<failOnViolation>true</failOnViolation>
|
|
|
|
</configuration>
|
2017-12-10 16:18:03 -05:00
|
|
|
</plugin>
|
2018-03-20 03:46:51 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>net.revelc.code</groupId>
|
|
|
|
<artifactId>warbucks-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
2017-07-12 20:12:52 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<!-- Intra-project dependencies -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-common</artifactId>
|
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-client</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
2017-08-31 11:03:22 -04:00
|
|
|
<artifactId>hbase-server</artifactId>
|
|
|
|
<type>jar</type>
|
2017-07-12 20:12:52 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
2017-08-31 11:03:22 -04:00
|
|
|
<artifactId>hbase-server</artifactId>
|
2017-07-12 20:12:52 -04:00
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-spark</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-it</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>${compat.module}</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-testing-util</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2017-12-18 05:14:30 -05:00
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
2017-07-12 20:12:52 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2017-08-24 14:10:17 -04:00
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
2017-07-12 20:12:52 -04:00
|
|
|
</dependency>
|
|
|
|
<!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.netty</groupId>
|
|
|
|
<artifactId>netty</artifactId>
|
|
|
|
<version>${netty.hadoop.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.spark</groupId>
|
|
|
|
<artifactId>spark-core_${scala.binary.version}</artifactId>
|
|
|
|
<version>${spark.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<!-- make sure wrong scala version is not pulled in -->
|
|
|
|
<groupId>org.scala-lang</groupId>
|
|
|
|
<artifactId>scala-library</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<!-- make sure wrong scala version is not pulled in -->
|
|
|
|
<groupId>org.scala-lang</groupId>
|
|
|
|
<artifactId>scalap</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
|
|
<artifactId>jsr305</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2018-03-09 10:58:53 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.scala-lang.modules</groupId>
|
|
|
|
<artifactId>scala-xml_2.11</artifactId>
|
|
|
|
<version>1.0.4</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2017-07-12 20:12:52 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.spark</groupId>
|
|
|
|
<artifactId>spark-sql_${scala.binary.version}</artifactId>
|
|
|
|
<version>${spark.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.spark</groupId>
|
|
|
|
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
|
|
|
|
<version>${spark.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.spark</groupId>
|
|
|
|
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
|
|
|
|
<version>${spark.version}</version>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<classifier>tests</classifier>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-08-31 11:03:22 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-07-12 20:12:52 -04:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<!-- Skip the tests in this module -->
|
|
|
|
<profile>
|
|
|
|
<id>skipIntegrationTests</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>skipIntegrationTests</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<skipTests>true</skipTests>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<reporting>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-report-plugin</artifactId>
|
|
|
|
<version>2.7.2</version>
|
|
|
|
<reportSets>
|
|
|
|
<reportSet>
|
|
|
|
<id>spark-integration-tests</id>
|
|
|
|
<reports>
|
|
|
|
<report>report-only</report>
|
|
|
|
</reports>
|
|
|
|
<configuration>
|
|
|
|
<outputName>failsafe-report</outputName>
|
|
|
|
<reportsDirectories>
|
|
|
|
<reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
|
|
|
|
</reportsDirectories>
|
|
|
|
</configuration>
|
|
|
|
</reportSet>
|
|
|
|
</reportSets>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</reporting>
|
|
|
|
|
|
|
|
</project>
|