@@ -40,6 +40,8 @@ invoked if the `integration-test` phase is run.
40
40
With Maven, the integration test can be run using the following command:
41
41
42
42
```
43
+ $ mvn clean pre-integration-test \
44
+ -Dspark-distro-tgz=spark/spark-2.3.0-SNAPSHOT-bin.tgz
43
45
$ mvn clean integration-test \
44
46
-Dspark-distro-tgz=spark/spark-2.3.0-SNAPSHOT-bin.tgz
45
47
```
@@ -50,20 +52,23 @@ In order to run against any cluster, use the following:
50
52
``` sh
51
53
$ mvn clean integration-test \
52
54
-Dspark-distro-tgz=spark/spark-2.3.0-SNAPSHOT-bin.tgz \
53
- -DextraScalaTestArgs=" -Dspark.kubernetes.test.master=k8s://https://<master> -Dspark.docker.test.driverImage=<driver-image> -Dspark.docker.test.executorImage=<executor-image>"
55
+ -DextraScalaTestArgs=" -Dspark.kubernetes.test.master=k8s://https://<master> \
56
+ -Dspark.docker.test.driverImage=<driver-image> \
57
+ -Dspark.docker.test.executorImage=<executor-image>
54
58
` ` `
55
59
56
- # Reuse the previous Docker images
60
+ # Specify existing docker images via image:tag
57
61
58
62
The integration tests build a number of Docker images, which takes some time.
59
63
By default, the images are built every time the tests run. You may want to skip
60
64
re-building those images during development, if the distribution package did not
61
65
change since the last run. You can pass the property
62
- ` spark.docker.test.skipBuildImages ` to the test process.
66
+ ` spark.kubernetes.test.imageDockerTag` to the test process and specify the Docker
67
+ image tag that is appropriate.
63
68
Here is an example:
64
69
65
70
` ` `
66
71
$ mvn clean integration-test \
67
72
-Dspark-distro-tgz=spark/spark-2.3.0-SNAPSHOT-bin.tgz \
68
- "-Dspark.docker .test.skipBuildImages=true "
73
+ " -Dspark.kubernetes .test.imageDockerTag=latest "
69
74
` ` `
0 commit comments