From 92f2634937f6ffe003c1dd09a51328e845a96428 Mon Sep 17 00:00:00 2001 From: Luciano Resende Date: Tue, 19 Apr 2016 15:11:29 -0700 Subject: [PATCH 1/3] [SPARK-14738][BUILD] Separate docker integration tests from main build --- docs/building-spark.md | 12 ++++++++++++ pom.xml | 8 +++++++- project/SparkBuild.scala | 3 ++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/docs/building-spark.md b/docs/building-spark.md index fec442af95e1b..13c95e4fcb395 100644 --- a/docs/building-spark.md +++ b/docs/building-spark.md @@ -190,6 +190,18 @@ or Java 8 tests are automatically enabled when a Java 8 JDK is detected. If you have JDK 8 installed but it is not the system default, you can set JAVA_HOME to point to JDK 8 before running the tests. +# Running Docker based Integration Test Suites + +Running only docker based integration tests and nothing else. + + mvn install -DskipTests + mvn -Pdocker-integration-tests -pl :spark-docker-integration-tests_2.11 + +or + + sbt docker-integration-tests/test + + # Packaging without Hadoop Dependencies for YARN The assembly directory produced by `mvn package` will, by default, include all of Spark's dependencies, including Hadoop and some of its ecosystem projects. On YARN deployments, this causes multiple versions of these to appear on executor classpaths: the version packaged in the Spark assembly and the version on each node, included with `yarn.application.classpath`. The `hadoop-provided` profile builds the assembly without including Hadoop-ecosystem projects, like ZooKeeper and Hadoop itself. diff --git a/pom.xml b/pom.xml index 1dce91b7dfe4f..2f48bd4205395 100644 --- a/pom.xml +++ b/pom.xml @@ -101,7 +101,6 @@ sql/core sql/hive sql/hivecontext-compatibility - external/docker-integration-tests assembly external/flume external/flume-sink @@ -2381,6 +2380,13 @@ + + docker-integration-tests + + external/docker-integration-tests + + +