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 F2E56200D41 for ; Wed, 22 Nov 2017 17:55:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F1277160C0F; Wed, 22 Nov 2017 16:55:11 +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 4279C160BEC for ; Wed, 22 Nov 2017 17:55:11 +0100 (CET) Received: (qmail 66488 invoked by uid 500); 22 Nov 2017 16:55:10 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 66479 invoked by uid 99); 22 Nov 2017 16:55:10 -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; Wed, 22 Nov 2017 16:55:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3F4BDDFFB5; Wed, 22 Nov 2017 16:55:10 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: lcwik@apache.org To: commits@beam.apache.org Date: Wed, 22 Nov 2017 16:55:10 -0000 Message-Id: <0cc0e072d48f41bfaee9929710f10635@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] beam git commit: Update sdks/java/io/hadoop/jdk1.8-tests to run and pass for Gradle build. archived-at: Wed, 22 Nov 2017 16:55:12 -0000 Repository: beam Updated Branches: refs/heads/master a40bdfd75 -> ea33f2a4a Update sdks/java/io/hadoop/jdk1.8-tests to run and pass for Gradle build. Project: http://git-wip-us.apache.org/repos/asf/beam/repo Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/982605d9 Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/982605d9 Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/982605d9 Branch: refs/heads/master Commit: 982605d922217e606f0cd5e27bf3b6a88a2f594e Parents: a40bdfd Author: Luke Cwik Authored: Tue Nov 21 18:02:55 2017 -0800 Committer: Luke Cwik Committed: Wed Nov 22 08:54:39 2017 -0800 ---------------------------------------------------------------------- sdks/java/io/hadoop/jdk1.8-tests/build.gradle | 35 +++++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam/blob/982605d9/sdks/java/io/hadoop/jdk1.8-tests/build.gradle ---------------------------------------------------------------------- diff --git a/sdks/java/io/hadoop/jdk1.8-tests/build.gradle b/sdks/java/io/hadoop/jdk1.8-tests/build.gradle index 25d0d85..14ea897 100644 --- a/sdks/java/io/hadoop/jdk1.8-tests/build.gradle +++ b/sdks/java/io/hadoop/jdk1.8-tests/build.gradle @@ -30,16 +30,22 @@ description = "Apache Beam :: SDKs :: Java :: IO :: Hadoop :: jdk1.8-tests" */ evaluationDependsOn(":beam-sdks-parent:beam-sdks-java-parent:beam-sdks-java-io-parent:beam-sdks-java-io-common") -test { - // TODO: Get tests to run. Known issues: - // * hive-exec bundles w/o repackaging Guava (HIVE-13690) - ignoreFailures true -} - def log4j_version = "2.6.2" def elastic_search_version = "5.0.0" +// Migrate to using a version of the driver compatible with Guava 20 +def cassandra_driver = "3.2.0" + +// Ban dependencies from the test runtime classpath +configurations.testRuntimeClasspath { + // Ban hive-exec and mesos since they bundle protobuf without repackaging + exclude group: "org.apache.hive", module: "hive-exec" + exclude group: "org.apache.mesos", module: "mesos" + // Prevent a StackOverflow because of wiring LOG4J -> SLF4J -> LOG4J + exclude group: "org.slf4j", module: "log4j-over-slf4j" +} dependencies { + shadow library.java.protobuf_java shadow project(path: ":beam-sdks-parent:beam-sdks-java-parent:beam-sdks-java-core", configuration: "shadow") shadow project(path: ":beam-sdks-parent:beam-sdks-java-parent:beam-sdks-java-io-parent:beam-sdks-java-io-hadoop-parent:beam-sdks-java-io-hadoop-input-format", configuration: "shadow") shadow library.java.slf4j_api @@ -55,9 +61,9 @@ dependencies { testCompile "org.elasticsearch.client:transport:$elastic_search_version" testCompile "io.netty:netty-transport-native-epoll:4.1.0.CR3" testCompile "org.elasticsearch:elasticsearch:$elastic_search_version" - testCompile "com.datastax.cassandra:cassandra-driver-mapping:3.1.1" + testCompile "com.datastax.cassandra:cassandra-driver-mapping:$cassandra_driver" testCompile "org.apache.cassandra:cassandra-all:3.9" - testCompile "com.datastax.cassandra:cassandra-driver-core:3.1.1" + testCompile "com.datastax.cassandra:cassandra-driver-core:$cassandra_driver" testCompile "org.apache.logging.log4j:log4j-core:$log4j_version" testCompile library.java.junit testCompile library.java.mockito_core @@ -69,3 +75,16 @@ task packageTests(type: Jar) { } artifacts.archives packageTests + +// The cassandra.yaml file currently assumes "target/..." exists. +// TODO: Update cassandra.yaml to inject new properties representing +// the root path. Also migrate cassandra.yaml to use any open ports +// instead of a static port. +task createTargetDirectoryForCassandra() { + doLast { + if (!project.file("target").exists()) { + project.file("target").mkdirs(); + } + } +} +test.dependsOn createTargetDirectoryForCassandra