Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0E9EE200BE2 for ; Thu, 15 Dec 2016 20:45:20 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0D239160B13; Thu, 15 Dec 2016 19:45:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8AB8D160B15 for ; Thu, 15 Dec 2016 20:45:17 +0100 (CET) Received: (qmail 639 invoked by uid 500); 15 Dec 2016 19:45:16 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 623 invoked by uid 99); 15 Dec 2016 19:45:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2016 19:45:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3B97EE7DFC; Thu, 15 Dec 2016 19:45:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wang@apache.org To: common-commits@hadoop.apache.org Date: Thu, 15 Dec 2016 19:45:17 -0000 Message-Id: <10846c85796f42508b606a82f7801e82@git.apache.org> In-Reply-To: <1975d7466ef046b8b44891f266208871@git.apache.org> References: <1975d7466ef046b8b44891f266208871@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] hadoop git commit: HADOOP-11804. Shaded Hadoop client artifacts and minicluster. Contributed by Sean Busbey. archived-at: Thu, 15 Dec 2016 19:45:20 -0000 HADOOP-11804. Shaded Hadoop client artifacts and minicluster. Contributed by Sean Busbey. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/70ca1f1e Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/70ca1f1e Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/70ca1f1e Branch: refs/heads/trunk Commit: 70ca1f1e3a328b18eb4e27f7d0f328ae403342d5 Parents: 36947f7 Author: Andrew Wang Authored: Thu Dec 15 11:44:59 2016 -0800 Committer: Andrew Wang Committed: Thu Dec 15 11:44:59 2016 -0800 ---------------------------------------------------------------------- .gitignore | 1 + dev-support/bin/dist-layout-stitching | 8 +- hadoop-client-modules/hadoop-client-api/pom.xml | 216 ++++++ .../hadoop-client-check-invariants/pom.xml | 124 +++ .../hadoop-client-check-test-invariants/pom.xml | 132 ++++ .../hadoop-client-integration-tests/pom.xml | 130 ++++ .../apache/hadoop/example/ITUseMiniCluster.java | 113 +++ .../src/test/resources/hdfs-site.xml | 34 + .../src/test/resources/log4j.properties | 24 + .../hadoop-client-minicluster/pom.xml | 745 +++++++++++++++++++ .../hadoop-client-runtime/pom.xml | 318 ++++++++ hadoop-client-modules/hadoop-client/pom.xml | 338 +++++++++ hadoop-client-modules/pom.xml | 45 ++ hadoop-client/pom.xml | 319 -------- hadoop-dist/pom.xml | 17 + hadoop-maven-plugins/pom.xml | 22 + .../resource/ServicesResourceTransformer.java | 164 ++++ .../plugin/shade/resource/package-info.java | 23 + hadoop-project/pom.xml | 96 ++- pom.xml | 4 +- 20 files changed, 2544 insertions(+), 329 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore index d7e321e..eb98a3f 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ .settings target build +dependency-reduced-pom.xml # External tool builders */.externalToolBuilders http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/dev-support/bin/dist-layout-stitching ---------------------------------------------------------------------- diff --git a/dev-support/bin/dist-layout-stitching b/dev-support/bin/dist-layout-stitching index 40ccdc7..fdbc83c 100755 --- a/dev-support/bin/dist-layout-stitching +++ b/dev-support/bin/dist-layout-stitching @@ -137,6 +137,12 @@ run copy "${ROOT}/hadoop-tools/hadoop-tools-dist/target/hadoop-tools-dist-${VERS run cp -pr "${ROOT}/hadoop-hdfs-project/hadoop-hdfs-httpfs/target/hadoop-hdfs-httpfs-${VERSION}"/* . run cp -pr "${ROOT}/hadoop-common-project/hadoop-kms/target/hadoop-kms-${VERSION}"/* . +# copy client jars as-is +run mkdir -p "share/hadoop/client" +run cp -p "${ROOT}/hadoop-client-modules/hadoop-client-api/target/hadoop-client-api-${VERSION}.jar" share/hadoop/client/ +run cp -p "${ROOT}/hadoop-client-modules/hadoop-client-runtime/target/hadoop-client-runtime-${VERSION}.jar" share/hadoop/client/ +run cp -p "${ROOT}/hadoop-client-modules/hadoop-client-minicluster/target/hadoop-client-minicluster-${VERSION}.jar" share/hadoop/client/ + echo echo "Hadoop dist layout available at: ${BASEDIR}/hadoop-${VERSION}" -echo \ No newline at end of file +echo http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/hadoop-client-modules/hadoop-client-api/pom.xml ---------------------------------------------------------------------- diff --git a/hadoop-client-modules/hadoop-client-api/pom.xml b/hadoop-client-modules/hadoop-client-api/pom.xml new file mode 100644 index 0000000..9342d53 --- /dev/null +++ b/hadoop-client-modules/hadoop-client-api/pom.xml @@ -0,0 +1,216 @@ + + + + 4.0.0 + + org.apache.hadoop + hadoop-project + 3.0.0-alpha2-SNAPSHOT + ../../hadoop-project + + hadoop-client-api + 3.0.0-alpha2-SNAPSHOT + jar + + Apache Hadoop Client + Apache Hadoop Client API + + + org.apache.hadoop.shaded + + true + + + + + org.apache.hadoop + hadoop-client + + true + + + + javax.xml.bind + jaxb-api + + + xml-apis + xml-apis + + + + + + org.apache.hadoop + hadoop-annotations + compile + + + jdk.tools + jdk.tools + + + + + + + + + org.apache.maven.plugins + maven-source-plugin + + true + + + + org.apache.maven.plugins + maven-shade-plugin + + + org.apache.hadoop + hadoop-maven-plugins + ${project.version} + + + + + package + + shade + + + + + org.apache.hadoop:* + + + + + + org.apache.hadoop:hadoop-yarn-common + + org/apache/hadoop/yarn/factories/package-info.class + org/apache/hadoop/yarn/util/package-info.class + org/apache/hadoop/yarn/factory/providers/package-info.class + org/apache/hadoop/yarn/client/api/impl/package-info.class + org/apache/hadoop/yarn/client/api/package-info.class + + + + + + org/ + ${shaded.dependency.prefix}.org. + + org/apache/hadoop/* + org/apache/hadoop/**/* + + org/apache/htrace/* + org/apache/htrace/**/* + org/slf4j/* + org/slf4j/**/* + org/apache/commons/logging/* + org/apache/commons/logging/**/* + org/apache/log4j/* + org/apache/log4j/**/* + **/pom.xml + + org/ietf/jgss/* + org/omg/**/* + org/w3c/dom/* + org/w3c/dom/**/* + org/xml/sax/* + org/xml/sax/**/* + + + + com/ + ${shaded.dependency.prefix}.com. + + **/pom.xml + + com/sun/tools/* + com/sun/javadoc/* + com/sun/security/* + com/sun/jndi/* + com/sun/management/* + com/sun/tools/**/* + com/sun/javadoc/**/* + com/sun/security/**/* + com/sun/jndi/**/* + com/sun/management/**/* + + + + io/ + ${shaded.dependency.prefix}.io. + + **/pom.xml + + io/compression/* + io/compression/**/* + io/mapfile/* + io/mapfile/**/* + io/map/index/* + io/seqfile/* + io/seqfile/**/* + io/file/buffer/size + io/skip/checksum/errors + io/sort/* + io/serializations + + + + javax/servlet/ + ${shaded.dependency.prefix}.javax.servlet. + + **/pom.xml + + + + net/ + ${shaded.dependency.prefix}.net. + + **/pom.xml + + net/topology/* + net/topology/**/* + + + + + + + + + false + + + + + + + + org.codehaus.mojo + license-maven-plugin + + + + + http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/hadoop-client-modules/hadoop-client-check-invariants/pom.xml ---------------------------------------------------------------------- diff --git a/hadoop-client-modules/hadoop-client-check-invariants/pom.xml b/hadoop-client-modules/hadoop-client-check-invariants/pom.xml new file mode 100644 index 0000000..f28816f --- /dev/null +++ b/hadoop-client-modules/hadoop-client-check-invariants/pom.xml @@ -0,0 +1,124 @@ + + + + 4.0.0 + + org.apache.hadoop + hadoop-project + 3.0.0-alpha2-SNAPSHOT + ../../hadoop-project + + hadoop-client-check-invariants + 3.0.0-alpha2-SNAPSHOT + pom + + Enforces our invariants for the api and runtime client modules. + Apache Hadoop Client Packaging Invariants + + + + + + + org.apache.hadoop + hadoop-client-api + + + org.apache.hadoop + hadoop-client-runtime + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 1.4 + + + org.codehaus.mojo + extra-enforcer-rules + 1.0-beta-3 + + + + + enforce-banned-dependencies + + enforce + + + + + + + + org.apache.hadoop:hadoop-annotations + + org.apache.htrace:htrace-core4 + + org.slf4j:slf4j-api + + commons-logging:commons-logging + + log4j:log4j + + + + true + + + org.apache.hadoop + hadoop-annotations + + * + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/hadoop-client-modules/hadoop-client-check-test-invariants/pom.xml ---------------------------------------------------------------------- diff --git a/hadoop-client-modules/hadoop-client-check-test-invariants/pom.xml b/hadoop-client-modules/hadoop-client-check-test-invariants/pom.xml new file mode 100644 index 0000000..23ab2ca --- /dev/null +++ b/hadoop-client-modules/hadoop-client-check-test-invariants/pom.xml @@ -0,0 +1,132 @@ + + + + 4.0.0 + + org.apache.hadoop + hadoop-project + 3.0.0-alpha2-SNAPSHOT + ../../hadoop-project + + hadoop-client-check-test-invariants + 3.0.0-alpha2-SNAPSHOT + pom + + Enforces our invariants for the testing client modules. + Apache Hadoop Client Packaging Invariants for Test + + + + + + + org.apache.hadoop + hadoop-client-api + + + org.apache.hadoop + hadoop-client-runtime + + + org.apache.hadoop + hadoop-client-minicluster + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 1.4 + + + org.codehaus.mojo + extra-enforcer-rules + 1.0-beta-3 + + + + + enforce-banned-dependencies + + enforce + + + + + + + + org.apache.hadoop:hadoop-annotations + + org.apache.htrace:htrace-core4 + + org.slf4j:slf4j-api + + commons-logging:commons-logging + + log4j:log4j + + junit:junit + + org.hamcrest:hamcrest-core + + + + true + + + org.apache.hadoop + hadoop-annotations + + * + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/hadoop-client-modules/hadoop-client-integration-tests/pom.xml ---------------------------------------------------------------------- diff --git a/hadoop-client-modules/hadoop-client-integration-tests/pom.xml b/hadoop-client-modules/hadoop-client-integration-tests/pom.xml new file mode 100644 index 0000000..0df6776 --- /dev/null +++ b/hadoop-client-modules/hadoop-client-integration-tests/pom.xml @@ -0,0 +1,130 @@ + + + + 4.0.0 + + org.apache.hadoop + hadoop-project + 3.0.0-alpha2-SNAPSHOT + ../../hadoop-project + + hadoop-client-integration-tests + 3.0.0-alpha2-SNAPSHOT + + Checks that we can use the generated artifacts + Apache Hadoop Client Packaging Integration Tests + + + 400 + + + + + org.apache.hadoop + hadoop-client-api + test + + + org.apache.hadoop + hadoop-client-runtime + test + + + org.apache.hadoop + hadoop-client-minicluster + test + + + log4j + log4j + test + + + org.slf4j + slf4j-api + test + + + org.slf4j + slf4j-log4j12 + test + + + junit + junit + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + default-testCompile + test-compile + + + **/IT* + **/*IT + + + + + + compile-integration-tests + pre-integration-test + + testCompile + + + + **/IT* + **/*IT + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + + integration-test + verify + + + + + + + + + http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/hadoop-client-modules/hadoop-client-integration-tests/src/test/java/org/apache/hadoop/example/ITUseMiniCluster.java ---------------------------------------------------------------------- diff --git a/hadoop-client-modules/hadoop-client-integration-tests/src/test/java/org/apache/hadoop/example/ITUseMiniCluster.java b/hadoop-client-modules/hadoop-client-integration-tests/src/test/java/org/apache/hadoop/example/ITUseMiniCluster.java new file mode 100644 index 0000000..3f560d0 --- /dev/null +++ b/hadoop-client-modules/hadoop-client-integration-tests/src/test/java/org/apache/hadoop/example/ITUseMiniCluster.java @@ -0,0 +1,113 @@ +/* + * 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.hadoop.example; + +import java.io.IOException; +import java.net.URISyntaxException; + +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import org.apache.hadoop.fs.FileSystem; +import org.apache.hadoop.fs.FSDataInputStream; +import org.apache.hadoop.fs.FSDataOutputStream; +import org.apache.hadoop.fs.Path; + +import org.apache.hadoop.conf.Configuration; + +import org.apache.hadoop.hdfs.HdfsConfiguration; +import org.apache.hadoop.hdfs.MiniDFSCluster; + +import org.apache.hadoop.hdfs.web.WebHdfsTestUtil; +import org.apache.hadoop.hdfs.web.WebHdfsConstants; + +/** + * Ensure that we can perform operations against the shaded minicluster + * given the API and runtime jars by performing some simple smoke tests. + */ +public class ITUseMiniCluster { + + private static final Logger LOG = + LoggerFactory.getLogger(ITUseMiniCluster.class); + + private MiniDFSCluster cluster; + + private static final String TEST_PATH = "/foo/bar/cats/dee"; + private static final String FILENAME = "test.file"; + + private static final String TEXT = "Lorem ipsum dolor sit amet, consectetur " + + "adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore " + + "magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation " + + "ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute " + + "irure dolor in reprehenderit in voluptate velit esse cillum dolore eu " + + "fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident," + + " sunt in culpa qui officia deserunt mollit anim id est laborum."; + + @Before + public void clusterUp() throws IOException { + final Configuration conf = new HdfsConfiguration(); + cluster = new MiniDFSCluster.Builder(conf) + .numDataNodes(3) + .build(); + cluster.waitActive(); + } + + @After + public void clusterDown() { + cluster.close(); + } + + @Test + public void useHdfsFileSystem() throws IOException { + try (final FileSystem fs = cluster.getFileSystem()) { + simpleReadAfterWrite(fs); + } + } + + public void simpleReadAfterWrite(final FileSystem fs) throws IOException { + LOG.info("Testing read-after-write with FS implementation: {}", fs); + final Path path = new Path(TEST_PATH, FILENAME); + if (!fs.mkdirs(path.getParent())) { + throw new IOException("Mkdirs failed to create " + + TEST_PATH); + } + try (final FSDataOutputStream out = fs.create(path)) { + out.writeUTF(TEXT); + } + try (final FSDataInputStream in = fs.open(path)) { + final String result = in.readUTF(); + Assert.assertEquals("Didn't read back text we wrote.", TEXT, result); + } + } + + @Test + public void useWebHDFS() throws IOException, URISyntaxException { + try (final FileSystem fs = WebHdfsTestUtil.getWebHdfsFileSystem( + cluster.getConfiguration(0), WebHdfsConstants.WEBHDFS_SCHEME)) { + simpleReadAfterWrite(fs); + } + } +} http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/hadoop-client-modules/hadoop-client-integration-tests/src/test/resources/hdfs-site.xml ---------------------------------------------------------------------- diff --git a/hadoop-client-modules/hadoop-client-integration-tests/src/test/resources/hdfs-site.xml b/hadoop-client-modules/hadoop-client-integration-tests/src/test/resources/hdfs-site.xml new file mode 100644 index 0000000..cd13532 --- /dev/null +++ b/hadoop-client-modules/hadoop-client-integration-tests/src/test/resources/hdfs-site.xml @@ -0,0 +1,34 @@ + + + + + + + + + + hadoop.security.authentication + simple + + + + dfs.namenode.fs-limits.min-block-size + 0 + + + http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/hadoop-client-modules/hadoop-client-integration-tests/src/test/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/hadoop-client-modules/hadoop-client-integration-tests/src/test/resources/log4j.properties b/hadoop-client-modules/hadoop-client-integration-tests/src/test/resources/log4j.properties new file mode 100644 index 0000000..db66160 --- /dev/null +++ b/hadoop-client-modules/hadoop-client-integration-tests/src/test/resources/log4j.properties @@ -0,0 +1,24 @@ +# +# 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. +# +# log4j configuration used during build and unit tests + +log4j.rootLogger=info,stdout +log4j.threshold=ALL +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} (%F:%M(%L)) - %m%n + http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/hadoop-client-modules/hadoop-client-minicluster/pom.xml ---------------------------------------------------------------------- diff --git a/hadoop-client-modules/hadoop-client-minicluster/pom.xml b/hadoop-client-modules/hadoop-client-minicluster/pom.xml new file mode 100644 index 0000000..8ab70d8 --- /dev/null +++ b/hadoop-client-modules/hadoop-client-minicluster/pom.xml @@ -0,0 +1,745 @@ + + + + 4.0.0 + + org.apache.hadoop + hadoop-project + 3.0.0-alpha2-SNAPSHOT + ../../hadoop-project + + hadoop-client-minicluster + 3.0.0-alpha2-SNAPSHOT + jar + + Apache Hadoop Minicluster for Clients + Apache Hadoop Client Test Minicluster + + + org.apache.hadoop.shaded + + true + + + + + org.apache.hadoop + hadoop-client-api + runtime + + + org.apache.hadoop + hadoop-client-runtime + runtime + + + + junit + junit + runtime + + + + org.apache.hadoop + hadoop-annotations + compile + true + + + jdk.tools + jdk.tools + + + + + + + org.apache.hadoop + hadoop-minicluster + true + + + + org.apache.hadoop + hadoop-yarn-server-timelineservice + + + + + org.apache.hadoop + hadoop-common + + + org.apache.hadoop + hadoop-hdfs-client + + + org.apache.hadoop + hadoop-mapreduce-client-app + + + org.apache.hadoop + hadoop-yarn-api + + + org.apache.hadoop + hadoop-mapreduce-client-core + + + org.apache.hadoop + hadoop-mapreduce-client-jobclient + + + + io.netty + netty + + + javax.servlet + javax.servlet-api + + + javax.xml.bind + jaxb-api + + + org.apache.avro + avro + + + org.apache.curator + curator-client + + + org.apache.hadoop + hadoop-mapreduce-client-common + + + org.apache.hadoop + hadoop-yarn-common + + + org.apache.hadoop + hadoop-yarn-server-common + + + org.apache.zookeeper + zookeeper + + + org.fusesource.leveldbjni + leveldbjni-all + + + org.eclipse.jetty + jetty-util + + + com.google.guava + guava + + + com.google.protobuf + protobuf-java + + + commons-collections + commons-collections + + + commons-io + commons-io + + + commons-lang + commons-lang + + + commons-logging + commons-logging + + + org.slf4j + slf4j-api + + + org.slf4j + slf4j-log4j12 + + + log4j + log4j + + + com.fasterxml.jackson.core + jackson-annotations + + + com.fasterxml.jackson.core + jackson-core + + + com.fasterxml.jackson.core + jackson-databind + + + commons-cli + commons-cli + + + commons-codec + commons-codec + + + javax.servlet + javax.servlet-api + + + xmlenc + xmlenc + + + + + + org.apache.hadoop + hadoop-yarn-server-timelineservice + runtime + true + + + * + * + + + + + + org.apache.hadoop + hadoop-common + compile + test-jar + true + + + * + * + + + + + org.apache.hadoop + hadoop-hdfs + compile + test-jar + true + + + * + * + + + + + org.apache.hadoop + hadoop-mapreduce-client-jobclient + compile + test-jar + true + + + * + * + + + + + + + + + + com.sun.jersey + jersey-core + true + + + javax.ws.rs + jsr311-api + + + + + com.sun.jersey + jersey-client + true + + + com.sun.jersey + jersey-json + true + + + javax.xml.bind + jaxb-api + + + org.codehaus.jackson + jackson-core-asl + + + org.codehaus.jackson + jackson-mapper-asl + + + org.codehaus.jackson + jackson-jaxrs + + + org.codehaus.jackson + jackson-xc + + + + + com.sun.jersey + jersey-server + true + + + com.sun.jersey + jersey-servlet + true + + + org.eclipse.jdt + core + true + + + + net.sf.kosmosfs + kfs + true + + + net.java.dev.jets3t + jets3t + true + + + commons-codec + commons-codec + + + commons-logging + commons-logging + + + org.apache.httpcomponents + httpclient + + + org.apache.httpcomponents + httpcore + + + + + com.jcraft + jsch + true + + + + + org.apache.hadoop + hadoop-yarn-server-nodemanager + true + + + javax.servlet + javax.servlet-api + + + org.apache.hadoop + hadoop-yarn-api + + + org.apache.hadoop + hadoop-yarn-common + + + org.apache.hadoop + hadoop-yarn-server-common + + + org.fusesource.leveldbjni + leveldbjni-all + + + org.eclipse.jetty + jetty-util + + + com.google.guava + guava + + + com.google.protobuf + protobuf-java + + + commons-codec + commons-codec + + + commons-lang + commons-lang + + + commons-logging + commons-logging + + + org.slf4j + slf4j-api + + + javax.xml.bind + jaxb-api + + + + + org.apache.hadoop + hadoop-yarn-server-web-proxy + true + + + javax.servlet + javax.servlet-api + + + org.apache.hadoop + hadoop-yarn-api + + + org.apache.hadoop + hadoop-yarn-common + + + org.apache.hadoop + hadoop-yarn-server-common + + + com.google.guava + guava + + + commons-httpclient + commons-httpclient + + + commons-logging + commons-logging + + + org.eclipse.jetty + jetty-util + + + + + + com.google.inject.extensions + guice-servlet + true + + + + + + + + + com.google.inject + guice + true + + + com.google.guava + guava + + + + + com.sun.jersey.jersey-test-framework + jersey-test-framework-grizzly2 + true + + + + org.glassfish + javax.servlet + + + + + + com.sun.jersey.contribs + jersey-guice + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-source-plugin + + true + + + + org.apache.maven.plugins + maven-shade-plugin + + + org.apache.hadoop + hadoop-maven-plugins + ${project.version} + + + + + package + + shade + + + true + + + + org.apache.hadoop:hadoop-annotations + org.apache.hadoop:hadoop-client-api + org.apache.hadoop:hadoop-client-runtime + + org.apache.htrace:htrace-core4 + org.slf4j:slf4j-api + commons-logging:commons-logging + junit:junit + + org.apache.hadoop:hadoop-yarn-server-timelineservice + log4j:log4j + + + + + + + *:* + + **/*.java + + + + + *:* + + **/Test*.class + + + + + com.sun.jersey:jersey-client + + **/*.class + + + + com.sun.jersey:jersey-core + + **/*.class + + + + com.sun.jersey:jersey-servlet + + **/*.class + + + + + + org/ + ${shaded.dependency.prefix}.org. + + org/apache/hadoop/* + org/apache/hadoop/**/* + + org/apache/htrace/* + org/apache/htrace/**/* + org/slf4j/* + org/slf4j/**/* + org/apache/commons/logging/* + org/apache/commons/logging/**/* + org/apache/log4j/* + org/apache/log4j/**/* + **/pom.xml + + org/junit/* + org/junit/**/* + + org/ietf/jgss/* + org/omg/**/* + org/w3c/dom/* + org/w3c/dom/**/* + org/xml/sax/* + org/xml/sax/**/* + + + + com/ + ${shaded.dependency.prefix}.com. + + **/pom.xml + + com/sun/tools/* + com/sun/javadoc/* + com/sun/security/* + com/sun/jndi/* + com/sun/management/* + com/sun/tools/**/* + com/sun/javadoc/**/* + com/sun/security/**/* + com/sun/jndi/**/* + com/sun/management/**/* + + + + io/ + ${shaded.dependency.prefix}.io. + + **/pom.xml + + io/compression/* + io/compression/**/* + io/mapfile/* + io/mapfile/**/* + io/map/index/* + io/seqfile/* + io/seqfile/**/* + io/file/buffer/size + io/skip/checksum/errors + io/sort/* + io/serializations + + + + javax/el/ + ${shaded.dependency.prefix}.javax.el. + + **/pom.xml + + + + javax/inject/ + ${shaded.dependency.prefix}.javax.inject. + + **/pom.xml + + + + javax/servlet/ + ${shaded.dependency.prefix}.javax.servlet. + + **/pom.xml + + + + net/ + ${shaded.dependency.prefix}.net. + + **/pom.xml + + net/topology/* + net/topology/**/* + + + + + + + + + false + + + + + + + + org.codehaus.mojo + license-maven-plugin + + + + + + http://git-wip-us.apache.org/repos/asf/hadoop/blob/70ca1f1e/hadoop-client-modules/hadoop-client-runtime/pom.xml ---------------------------------------------------------------------- diff --git a/hadoop-client-modules/hadoop-client-runtime/pom.xml b/hadoop-client-modules/hadoop-client-runtime/pom.xml new file mode 100644 index 0000000..aa1a54b --- /dev/null +++ b/hadoop-client-modules/hadoop-client-runtime/pom.xml @@ -0,0 +1,318 @@ + + + + 4.0.0 + + org.apache.hadoop + hadoop-project + 3.0.0-alpha2-SNAPSHOT + ../../hadoop-project + + hadoop-client-runtime + 3.0.0-alpha2-SNAPSHOT + jar + + Apache Hadoop Client + Apache Hadoop Client Runtime + + + org.apache.hadoop.shaded + + true + + + + + org.apache.hadoop + hadoop-client + + true + + + + javax.xml.bind + jaxb-api + + + xml-apis + xml-apis + + + + + + org.apache.hadoop + hadoop-client-api + runtime + + + + org.apache.hadoop + hadoop-annotations + compile + + + jdk.tools + jdk.tools + + + + + + org.apache.htrace + htrace-core4 + runtime + + + org.slf4j + slf4j-api + runtime + + + commons-logging + commons-logging + runtime + + + + log4j + log4j + runtime + true + + + + + + + org.apache.maven.plugins + maven-source-plugin + + true + + + + org.apache.maven.plugins + maven-shade-plugin + + + org.apache.hadoop + hadoop-maven-plugins + ${project.version} + + + + + package + + shade + + + true + + + + org.apache.hadoop:hadoop-client-api + + org.apache.htrace:htrace-core4 + + org.slf4j:slf4j-api + + commons-logging:commons-logging + + log4j:log4j + + + + + + org.apache.hadoop:* + + **/* + * + + + + + *:* + + **/*.java + + + + + tomcat:jasper-compiler + + org/apache/jasper/compiler/Localizer.class + + + + + xerces:xercesImpl + + META-INF/services/* + + + + + com.sun.jersey:* + + META-INF/services/javax.* + + + + + + org/ + ${shaded.dependency.prefix}.org. + + org/apache/hadoop/* + org/apache/hadoop/**/* + + org/apache/htrace/* + org/apache/htrace/**/* + org/slf4j/* + org/slf4j/**/* + org/apache/commons/logging/* + org/apache/commons/logging/**/* + org/apache/log4j/* + org/apache/log4j/**/* + **/pom.xml + + org/ietf/jgss/* + org/omg/**/* + org/w3c/dom/* + org/w3c/dom/**/* + org/xml/sax/* + org/xml/sax/**/* + + + + com/ + ${shaded.dependency.prefix}.com. + + **/pom.xml + + com/sun/tools/* + com/sun/javadoc/* + com/sun/security/* + com/sun/jndi/* + com/sun/management/* + com/sun/tools/**/* + com/sun/javadoc/**/* + com/sun/security/**/* + com/sun/jndi/**/* + com/sun/management/**/* + + + + io/ + ${shaded.dependency.prefix}.io. + + **/pom.xml + + io/compression/* + io/compression/**/* + io/mapfile/* + io/mapfile/**/* + io/map/index/* + io/seqfile/* + io/seqfile/**/* + io/file/buffer/size + io/skip/checksum/errors + io/sort/* + io/serializations + + + + javax/el/ + ${shaded.dependency.prefix}.javax.el. + + **/pom.xml + + + + javax/servlet/ + ${shaded.dependency.prefix}.javax.servlet. + + **/pom.xml + + + + net/ + ${shaded.dependency.prefix}.net. + + **/pom.xml + + net/topology/* + net/topology/**/* + + + + + + + + + + + false + + + META-INF/jboss-beans.xml + + + + META-INF/mailcap.default + + + META-INF/mimetypes.default + + + + + + + + org.codehaus.mojo + license-maven-plugin + + + + + + --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org