2013-03-29 14:49:42 -04:00
|
|
|
<?xml version="1.0"?>
|
2013-07-10 13:59:55 -04:00
|
|
|
<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>
|
2013-07-10 13:59:55 -04:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
2017-06-07 01:04:39 -04:00
|
|
|
<version>3.0.0-SNAPSHOT</version>
|
2017-07-06 17:13:26 -04:00
|
|
|
<relativePath>../hbase-build-configuration</relativePath>
|
2013-07-10 13:59:55 -04:00
|
|
|
</parent>
|
2012-12-03 16:30:19 -05:00
|
|
|
|
2013-07-10 13:59:55 -04:00
|
|
|
<artifactId>hbase-client</artifactId>
|
2015-07-15 06:12:36 -04:00
|
|
|
<name>Apache HBase - Client</name>
|
2013-07-10 13:59:55 -04:00
|
|
|
<description>Client of HBase</description>
|
2017-01-26 15:17:48 -05:00
|
|
|
<!--REMOVE-->
|
2012-12-03 16:30:19 -05:00
|
|
|
|
2013-07-10 13:59:55 -04: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>
|
2013-07-10 13:59:55 -04:00
|
|
|
<!-- Make a jar and put the sources in the jar -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
</plugin>
|
2018-03-20 03:46:51 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>net.revelc.code</groupId>
|
|
|
|
<artifactId>warbucks-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
2013-07-10 13:59:55 -04: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>
|
|
|
|
</pluginExecutions>
|
|
|
|
</lifecycleMappingMetadata>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
2013-07-10 13:59:55 -04:00
|
|
|
</build>
|
2012-12-03 16:30:19 -05:00
|
|
|
|
2013-07-10 13:59:55 -04:00
|
|
|
<dependencies>
|
2017-07-05 15:06:29 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase.thirdparty</groupId>
|
|
|
|
<artifactId>hbase-shaded-protobuf</artifactId>
|
|
|
|
</dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
<!-- Intra-project dependencies -->
|
2014-10-07 02:16:22 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-annotations</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-common</artifactId>
|
|
|
|
</dependency>
|
2017-04-21 21:41:15 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-hadoop-compat</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-hadoop2-compat</artifactId>
|
2017-08-10 17:16:20 -04:00
|
|
|
<exclusions>
|
|
|
|
<!-- We don't need MR support classes here. -->
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-mapreduce-client-core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2017-04-21 21:41:15 -04:00
|
|
|
</dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-common</artifactId>
|
|
|
|
<type>test-jar</type>
|
2015-04-05 06:43:48 -04:00
|
|
|
<scope>test</scope>
|
2013-07-10 13:59:55 -04:00
|
|
|
</dependency>
|
HBASE-15638 Shade protobuf
Which includes
HBASE-16742 Add chapter for devs on how we do protobufs going forward
HBASE-16741 Amend the generate protobufs out-of-band build step
to include shade, pulling in protobuf source and a hook for patching protobuf
Removed ByteStringer from hbase-protocol-shaded. Use the protobuf-3.1.0
trick directly instead. Makes stuff cleaner. All under 'shaded' dir is
now generated.
HBASE-16567 Upgrade to protobuf-3.1.x
Regenerate all protos in this module with protoc3.
Redo ByteStringer to use new pb3.1.0 unsafebytesutil
instead of HBaseZeroCopyByteString
HBASE-16264 Figure how to deal with endpoints and shaded pb Shade our protobufs.
Do it in a manner that makes it so we can still have in our API references to
com.google.protobuf (and in REST). The c.g.p in API is for Coprocessor Endpoints (CPEP)
This patch is Tactic #4 from Shading Doc attached to the referenced issue.
Figuring an appoach took a while because we have Coprocessor Endpoints
mixed in with the core of HBase that are tough to untangle (FIX).
Tactic #4 (the fourth attempt at addressing this issue) is COPY all but
the CPEP .proto files currently in hbase-protocol to a new module named
hbase-protocol-shaded. Generate .protos again in the new location and
then relocate/shade the generated files. Let CPEPs keep on with the
old references at com.google.protobuf.* and
org.apache.hadoop.hbase.protobuf.* but change the hbase core so all
instead refer to the relocated files in their new location at
org.apache.hadoop.hbase.shaded.com.google.protobuf.*.
Let the new module also shade protobufs themselves and change hbase
core to pick up this shaded protobuf rather than directly reference
com.google.protobuf.
This approach allows us to explicitly refer to either the shaded or
non-shaded version of a protobuf class in any particular context (though
usually context dictates one or the other). Core runs on shaded protobuf.
CPEPs continue to use whatever is on the classpath with
com.google.protobuf.* which is pb2.5.0 for the near future at least.
See above cited doc for follow-ons and downsides. In short, IDEs will complain
about not being able to find the shaded protobufs since shading happens at package
time; will fix by checking in all generated classes and relocated protobuf in
a follow-on. Also, CPEPs currently suffer an extra-copy as marshalled from
non-shaded to shaded. To fix. Finally, our .protos are duplicated; once
shaded, and once not. Pain, but how else to reveal our protos to CPEPs or
C++ client that wants to talk with HBase AND shade protobuf.
Details:
Add a new hbase-protocol-shaded module. It is a copy of hbase-protocol
i with all relocated offset from o.a.h.h. to o.a.h.h.shaded. The new module
also includes the relocated pb. It does not include CPEPs. They stay in
their old location.
Add another module hbase-endpoint which has in it all the endpoints
that ship as part of hbase -- at least the ones that are not
entangled with core such as AccessControl and Auth. Move all protos
for these CPEPs here as well as their unit tests (mostly moving a
bunch of stuff out of hbase-server module)
Much of the change looks like this:
-import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
-import org.apache.hadoop.hbase.protobuf.generated.ClusterIdProtos;
+import org.apache.hadoop.hbase.protobuf.shaded.ProtobufUtil;
+import org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos;
In HTable and in HBaseAdmin, regularize the way Callables are used and also hide
protobuf usage as much as possible moving it up into Callable super classes or out
to utility classes. Still TODO is adding in of retries, etc., but can wait on
procedure which will redo all this.
Also in HTable and HBaseAdmin as well as in HRegionServer and Server, be explicit
when using non-shaded protobuf. Do the full-path so it is clear. This is around
endpoint coprocessors registration of services and execution of CPEP methods.
Shrunk ProtobufUtil by moving methods used by one CPEP only back to the CPEP either
into Client class or as new Util class; e.g. AccessControlUtil.
There are actually two versions of ProtobufUtil now; a shaded one and a subset
that is used by CPEPs doing non-shaded work.
Made it so hbase-common no longer depends on hbase-protocol (with Matteo's help)
R*Converter classes got moved down under shaded package -- they are for internal
use only. There are no non-shaded versions of these classes.
D hbase-client/src/main/java/org/apache/hadoop/hbase/client/AbstractRegionServerCallable
D RetryingCallableBase
Not used anymore and we have too many tiers of Callables so removed/cleaned-up.
A ClientServicecallable
Had to add this one. RegionServerCallable was made generic so it could be used
for a few Interfaces (Client and Admin). Then added ClientServiceCallable to
implement RegionServerCallable with the Client Interface.
2016-10-04 00:37:32 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-protocol-shaded</artifactId>
|
|
|
|
</dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-protocol</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<!-- General dependencies -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-codec</groupId>
|
|
|
|
<artifactId>commons-codec</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2017-08-24 14:10:17 -04:00
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
2013-07-10 13:59:55 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2017-12-18 05:14:30 -05:00
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
2013-07-10 13:59:55 -04:00
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
2017-07-07 01:43:46 -04:00
|
|
|
<groupId>org.apache.hbase.thirdparty</groupId>
|
|
|
|
<artifactId>hbase-shaded-miscellaneous</artifactId>
|
2015-01-21 16:12:57 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
|
<artifactId>protobuf-java</artifactId>
|
|
|
|
</dependency>
|
2013-09-23 12:55:09 -04:00
|
|
|
<dependency>
|
2017-08-02 17:47:51 -04:00
|
|
|
<groupId>org.apache.hbase.thirdparty</groupId>
|
|
|
|
<artifactId>hbase-shaded-netty</artifactId>
|
2013-09-23 12:55:09 -04:00
|
|
|
</dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.zookeeper</groupId>
|
|
|
|
<artifactId>zookeeper</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2015-01-21 16:02:24 -05:00
|
|
|
<groupId>org.apache.htrace</groupId>
|
2017-10-26 17:23:42 -04:00
|
|
|
<artifactId>htrace-core4</artifactId>
|
2013-07-10 13:59:55 -04:00
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jruby.jcodings</groupId>
|
|
|
|
<artifactId>jcodings</artifactId>
|
|
|
|
</dependency>
|
2014-10-03 02:06:32 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jruby.joni</groupId>
|
|
|
|
<artifactId>joni</artifactId>
|
|
|
|
</dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-10-05 13:19:40 -04:00
|
|
|
<dependency>
|
2015-12-15 15:11:27 -05:00
|
|
|
<groupId>io.dropwizard.metrics</groupId>
|
2015-10-05 13:19:40 -04:00
|
|
|
<artifactId>metrics-core</artifactId>
|
|
|
|
</dependency>
|
2016-02-08 00:57:23 -05:00
|
|
|
<dependency>
|
2017-08-10 17:16:20 -04:00
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
2016-02-08 00:57:23 -05:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-10-27 21:50:20 -04:00
|
|
|
<dependency>
|
2017-08-10 17:16:20 -04:00
|
|
|
<groupId>org.mockito</groupId>
|
2017-10-03 01:53:34 -04:00
|
|
|
<artifactId>mockito-core</artifactId>
|
2017-08-10 17:16:20 -04:00
|
|
|
<scope>test</scope>
|
2016-10-27 21:50:20 -04:00
|
|
|
</dependency>
|
2017-07-07 01:43:46 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-crypto</artifactId>
|
|
|
|
<version>${commons-crypto.version}</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>net.java.dev.jna</groupId>
|
|
|
|
<artifactId>jna</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2017-10-02 17:31:48 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
</dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<!-- Skip the tests in this module -->
|
|
|
|
<profile>
|
|
|
|
<id>skipClientTests</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>skipClientTests</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<surefire.skipFirstPart>true</surefire.skipFirstPart>
|
2017-02-02 14:05:17 -05:00
|
|
|
<surefire.skipSecondPart>true</surefire.skipSecondPart>
|
2013-07-10 13:59:55 -04:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
2016-09-21 23:54:21 -04:00
|
|
|
<!-- profile for building against Hadoop 2.x. This is the default -->
|
2013-07-10 13:59:55 -04:00
|
|
|
<profile>
|
|
|
|
<id>hadoop-2.0</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
2013-08-02 15:01:34 -04:00
|
|
|
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
2013-12-05 21:42:20 -05:00
|
|
|
<!--h2--><name>!hadoop.profile</name>
|
2013-07-10 13:59:55 -04:00
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
2014-12-19 10:55:53 -05:00
|
|
|
<dependency>
|
2016-08-02 02:17:59 -04:00
|
|
|
<groupId>com.github.stephenc.findbugs</groupId>
|
|
|
|
<artifactId>findbugs-annotations</artifactId>
|
2014-12-19 10:55:53 -05:00
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-auth</artifactId>
|
|
|
|
</dependency>
|
2012-12-03 16:30:19 -05:00
|
|
|
<dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
<groupId>org.apache.hadoop</groupId>
|
2013-08-02 15:01:34 -04:00
|
|
|
<artifactId>hadoop-common</artifactId>
|
2013-09-17 11:41:04 -04:00
|
|
|
<exclusions>
|
2017-10-26 17:23:42 -04:00
|
|
|
<exclusion>
|
|
|
|
<groupId>org.apache.htrace</groupId>
|
|
|
|
<artifactId>htrace-core</artifactId>
|
|
|
|
</exclusion>
|
2014-12-18 00:53:18 -05:00
|
|
|
<exclusion>
|
|
|
|
<groupId>net.java.dev.jets3t</groupId>
|
|
|
|
<artifactId>jets3t</artifactId>
|
|
|
|
</exclusion>
|
2013-09-17 11:41:04 -04:00
|
|
|
<exclusion>
|
|
|
|
<groupId>javax.servlet.jsp</groupId>
|
|
|
|
<artifactId>jsp-api</artifactId>
|
|
|
|
</exclusion>
|
2014-12-18 00:53:18 -05:00
|
|
|
<exclusion>
|
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
|
|
<artifactId>jetty</artifactId>
|
|
|
|
</exclusion>
|
2017-08-10 17:16:20 -04:00
|
|
|
<exclusion>
|
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
|
|
<artifactId>jetty-util</artifactId>
|
|
|
|
</exclusion>
|
2013-09-17 11:41:04 -04:00
|
|
|
<exclusion>
|
|
|
|
<groupId>com.sun.jersey</groupId>
|
|
|
|
<artifactId>jersey-server</artifactId>
|
|
|
|
</exclusion>
|
2014-12-18 00:53:18 -05:00
|
|
|
<exclusion>
|
|
|
|
<groupId>com.sun.jersey</groupId>
|
|
|
|
<artifactId>jersey-core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.sun.jersey</groupId>
|
|
|
|
<artifactId>jersey-json</artifactId>
|
2017-10-03 01:53:34 -04:00
|
|
|
</exclusion>
|
2013-09-17 11:41:04 -04:00
|
|
|
<exclusion>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>servlet-api</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>tomcat</groupId>
|
|
|
|
<artifactId>jasper-compiler</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>tomcat</groupId>
|
|
|
|
<artifactId>jasper-runtime</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2013-08-02 15:01:34 -04:00
|
|
|
</dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
profile for building against Hadoop 3.0.x. Activate using:
|
|
|
|
mvn -Dhadoop.profile=3.0
|
|
|
|
-->
|
|
|
|
<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>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-auth</artifactId>
|
|
|
|
</dependency>
|
2013-03-19 05:24:01 -04:00
|
|
|
<dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
2013-03-19 05:24:01 -04:00
|
|
|
</dependency>
|
2013-07-10 13:59:55 -04:00
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2012-12-03 16:30:19 -05:00
|
|
|
</project>
|