skonto commented on a change in pull request #23514: [SPARK-24902][K8s] Add PV
integration tests
URL: https://github.com/apache/spark/pull/23514#discussion_r252065361
##########
File path:
resource-managers/kubernetes/integration-tests/src/test/scala/org/apache/spark/deploy/k8s/integrationtest/KubernetesSuite.scala
##########
@@ -170,6 +170,26 @@ class KubernetesSuite extends SparkFunSuite
isJVM)
}
+ protected def runDFSReadWriteAndVerifyCompletion(
+ wordCount: Int,
+ appResource: String = containerLocalSparkDistroExamplesJar,
+ driverPodChecker: Pod => Unit = doBasicDriverPodCheck,
+ executorPodChecker: Pod => Unit = doBasicExecutorPodCheck,
+ appArgs: Array[String] = Array.empty[String],
+ appLocator: String = appLocator,
+ isJVM: Boolean = true ): Unit = {
+ runSparkApplicationAndVerifyCompletion(
+ appResource,
+ SPARK_DFS_READ_WRITE_TEST,
+ Seq(s"Success! Local Word Count $wordCount and " +
+ s"DFS Word Count $wordCount agree."),
+ appArgs,
+ driverPodChecker,
+ executorPodChecker,
+ appLocator,
+ isJVM)
+ }
+
Review comment:
@erikerlandson ^^ I added a Spark job for the test.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]