2012-11-06 16:22:27 -05: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-08-19 04:23:52 -04:00
|
|
|
<artifactId>hbase-build-configuration</artifactId>
|
2012-11-06 16:22:27 -05:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
2018-03-08 00:34:17 -05:00
|
|
|
<version>2.1.0-SNAPSHOT</version>
|
2017-08-19 04:23:52 -04:00
|
|
|
<relativePath>../hbase-build-configuration</relativePath>
|
2012-11-06 16:22:27 -05:00
|
|
|
</parent>
|
|
|
|
<artifactId>hbase-examples</artifactId>
|
2015-07-15 06:12:36 -04:00
|
|
|
<name>Apache HBase - Examples</name>
|
2012-11-06 16:22:27 -05:00
|
|
|
<description>Examples of HBase usage</description>
|
2017-07-05 15:06:29 -04:00
|
|
|
<!--REMOVE-->
|
2012-11-06 16:22:27 -05:00
|
|
|
<build>
|
|
|
|
<plugins>
|
2013-03-29 14:49:42 -04:00
|
|
|
<plugin>
|
|
|
|
<!--Make it so assembly:single does nothing in here-->
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skipAssembly>true</skipAssembly>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2017-07-05 15:06:29 -04:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<!-- Have to set the groups here because we only do
|
2016-10-06 17:23:37 -04:00
|
|
|
split tests in this package, so groups on live in this module -->
|
2017-07-05 15:06:29 -04:00
|
|
|
<groups>${surefire.firstPartGroups}</groups>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<!-- Make a jar and put the sources in the jar -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.xolstice.maven.plugins</groupId>
|
|
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>compile-protoc</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2018-03-21 21:24:14 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>net.revelc.code</groupId>
|
|
|
|
<artifactId>warbucks-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
2012-11-06 16:22:27 -05:00
|
|
|
</plugins>
|
2015-03-13 17:27:54 -04:00
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<!--This plugin's configuration is used to store Eclipse m2e settings
|
|
|
|
only. It has no influence on the Maven build itself.-->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.eclipse.m2e</groupId>
|
|
|
|
<artifactId>lifecycle-mapping</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<lifecycleMappingMetadata>
|
|
|
|
<pluginExecutions>
|
|
|
|
<pluginExecution>
|
|
|
|
<pluginExecutionFilter>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<versionRange>[2.8,)</versionRange>
|
|
|
|
<goals>
|
|
|
|
<goal>build-classpath</goal>
|
|
|
|
</goals>
|
|
|
|
</pluginExecutionFilter>
|
|
|
|
<action>
|
2017-07-05 15:06:29 -04:00
|
|
|
<ignore/>
|
2015-03-13 17:27:54 -04:00
|
|
|
</action>
|
|
|
|
</pluginExecution>
|
|
|
|
</pluginExecutions>
|
|
|
|
</lifecycleMappingMetadata>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
2012-11-06 16:22:27 -05:00
|
|
|
</build>
|
|
|
|
<dependencies>
|
2017-07-07 01:43:46 -04:00
|
|
|
<dependency>
|
2017-08-31 11:03:22 -04:00
|
|
|
<groupId>org.apache.hbase.thirdparty</groupId>
|
|
|
|
<artifactId>hbase-shaded-miscellaneous</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase.thirdparty</groupId>
|
|
|
|
<artifactId>hbase-shaded-netty</artifactId>
|
2017-07-07 01:43:46 -04:00
|
|
|
</dependency>
|
2013-08-02 15:01:34 -04:00
|
|
|
<dependency>
|
2017-07-05 15:06:29 -04:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-common</artifactId>
|
2013-08-02 15:01:34 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2017-07-05 15:06:29 -04:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-protocol</artifactId>
|
2013-08-02 15:01:34 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2017-07-05 15:06:29 -04:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-client</artifactId>
|
2013-08-02 15:01:34 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2013-10-02 17:59:19 -04:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-server</artifactId>
|
2013-08-02 15:01:34 -04:00
|
|
|
</dependency>
|
2016-11-10 14:37:26 -05:00
|
|
|
<dependency>
|
HBASE-18640 Move mapreduce out of hbase-server into separate module.
- Moves out o.a.h.h.{mapred, mapreduce} to new hbase-mapreduce module which depends
on hbase-server because of classes like *Snapshot{Input,Output}Format.java, WALs, replication, etc
- hbase-backup depends on it for WALPlayer and MR job stuff
- A bunch of tools needed to be pulled into hbase-mapreduce becuase of their dependencies on MR.
These are: CompactionTool, LoadTestTool, PerformanceEvaluation, ExportSnapshot
This is better place of them than hbase-server. But ideal place would be in separate hbase-tools module.
- There were some tests in hbase-server which were digging into these tools for static util funtions or
confs. Moved these to better/easily shared place. For eg. security related stuff to HBaseKerberosUtils.
- Note that hbase-mapreduce has secondPartExecution tests. On my machine they took like 20 min, so maybe
more on apache jenkins. That's basically equal reduction of runtime of hbase-server tests, which is a
big win!
Change-Id: Ieeb7235014717ca83ee5cb13b2a27fddfa6838e8
2017-08-20 17:34:16 -04:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-mapreduce</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2016-11-10 14:37:26 -05:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-endpoint</artifactId>
|
|
|
|
</dependency>
|
2012-11-06 16:22:27 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
2013-10-02 17:59:19 -04:00
|
|
|
<artifactId>hbase-thrift</artifactId>
|
2012-11-06 16:22:27 -05:00
|
|
|
</dependency>
|
2017-08-31 11:03:22 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-metrics-api</artifactId>
|
|
|
|
</dependency>
|
2012-11-26 13:02:29 -05:00
|
|
|
<dependency>
|
2017-07-05 15:06:29 -04:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-testing-util</artifactId>
|
|
|
|
<scope>test</scope>
|
2012-11-26 13:02:29 -05:00
|
|
|
</dependency>
|
2012-11-06 16:22:27 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.thrift</groupId>
|
|
|
|
<artifactId>libthrift</artifactId>
|
|
|
|
</dependency>
|
2017-08-31 11:03:22 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
</dependency>
|
2012-11-26 13:02:29 -05:00
|
|
|
<dependency>
|
2017-12-18 05:14:30 -05:00
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
2012-11-06 16:22:27 -05:00
|
|
|
</dependency>
|
2013-10-02 17:59:19 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.zookeeper</groupId>
|
|
|
|
<artifactId>zookeeper</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
|
<artifactId>protobuf-java</artifactId>
|
|
|
|
</dependency>
|
2017-10-13 06:18:39 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.curator</groupId>
|
|
|
|
<artifactId>curator-framework</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.curator</groupId>
|
|
|
|
<artifactId>curator-client</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.curator</groupId>
|
|
|
|
<artifactId>curator-recipes</artifactId>
|
|
|
|
</dependency>
|
2017-08-31 11:03:22 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.stephenc.findbugs</groupId>
|
|
|
|
<artifactId>findbugs-annotations</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
2017-10-03 01:53:34 -04:00
|
|
|
<artifactId>mockito-core</artifactId>
|
2017-08-31 11:03:22 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-07-05 15:06:29 -04:00
|
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
|
|
<!-- Skip the tests in this module -->
|
|
|
|
<profile>
|
|
|
|
<id>skipExamplesTests</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>skipExamplesTests</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<surefire.skipFirstPart>true</surefire.skipFirstPart>
|
|
|
|
<surefire.skipSecondPart>true</surefire.skipSecondPart>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
<!-- Profiles for building against different hadoop versions -->
|
|
|
|
<!-- There are a lot of common dependencies used here, should investigate
|
|
|
|
if we can combine these profiles somehow -->
|
|
|
|
<!-- profile for building against Hadoop 2.x. This is the default -->
|
|
|
|
<profile>
|
|
|
|
<id>hadoop-2.0</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
|
|
|
<!--h2-->
|
|
|
|
<name>!hadoop.profile</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-mapreduce-client-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
2017-10-26 17:23:42 -04:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.apache.htrace</groupId>
|
|
|
|
<artifactId>htrace-core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2017-07-05 15:06:29 -04:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<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
|
2012-11-26 13:02:29 -05:00
|
|
|
the required classpath that is required in the env
|
|
|
|
of the launch container in the mini mr/yarn cluster
|
|
|
|
-->
|
2017-07-05 15:06:29 -04:00
|
|
|
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<!--
|
2012-11-26 13:02:29 -05:00
|
|
|
profile for building against Hadoop 3.0.x. Activate using:
|
|
|
|
mvn -Dhadoop.profile=3.0
|
|
|
|
-->
|
2017-07-05 15:06:29 -04:00
|
|
|
<profile>
|
|
|
|
<id>hadoop-3.0</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>hadoop.profile</name>
|
|
|
|
<value>3.0</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<hadoop.version>3.0-SNAPSHOT</hadoop.version>
|
|
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-minicluster</artifactId>
|
2017-10-26 17:23:42 -04:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.apache.htrace</groupId>
|
|
|
|
<artifactId>htrace-core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2017-07-05 15:06:29 -04:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<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
|
2012-11-26 13:02:29 -05:00
|
|
|
the required classpath that is required in the env
|
|
|
|
of the launch container in the mini mr/yarn cluster
|
|
|
|
-->
|
2017-07-05 15:06:29 -04:00
|
|
|
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2013-11-27 18:57:23 -05:00
|
|
|
</profiles>
|
2012-11-06 16:22:27 -05:00
|
|
|
</project>
|