-
Notifications
You must be signed in to change notification settings - Fork 118
Fix k8s integration tests #44
Fix k8s integration tests #44
Conversation
log4j.logger.org.apache.hadoop=WARN | ||
log4j.logger.org.eclipse.jetty=WARN | ||
log4j.logger.org.mortbay=WARN | ||
log4j.logger.org.spark_project.jetty=WARN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is needed for each sub module. Otherwise it would throw errors like the one mentioned in https://issues.apache.org/jira/browse/SPARK-17543.
I guess it's because scalatest-maven-plugin sets the log4j.configuration
property to file:src/test/resources/log4j.properties
. See https://github.com/apache/spark/blob/v2.1.0/pom.xml#L2019
@@ -152,6 +158,8 @@ private[spark] class KubernetesSuite extends SparkFunSuite with BeforeAndAfter { | |||
.set("spark.executor.cores", "1") | |||
.set("spark.executors.instances", "1") | |||
.set("spark.app.id", "spark-pi") | |||
.set("spark.ui.enabled", "true") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think other tests need this too - wherever we invoke expectationsForStaticAllocation()
. Although, part of improving the integration tests would be to find something other than the UI to rely on for checking the correctness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Updated.
- Enable spark ui explicitly for in-process submit - Fixed some broken assertions in integration tests - Fixed a scalastyle error in SparkDockerImageBuilder.scala - Log into target/integration-tests.log like other modules
f46c19d
to
221050c
Compare
ping @mccheah |
422dceb
into
apache-spark-on-k8s:k8s-support-alternate-incremental
* Fixed k8s integration test - Enable spark ui explicitly for in-process submit - Fixed some broken assertions in integration tests - Fixed a scalastyle error in SparkDockerImageBuilder.scala - Log into target/integration-tests.log like other modules * Fixed line length. * CR
* Fixed k8s integration test - Enable spark ui explicitly for in-process submit - Fixed some broken assertions in integration tests - Fixed a scalastyle error in SparkDockerImageBuilder.scala - Log into target/integration-tests.log like other modules * Fixed line length. * CR
* Fixed k8s integration test - Enable spark ui explicitly for in-process submit - Fixed some broken assertions in integration tests - Fixed a scalastyle error in SparkDockerImageBuilder.scala - Log into target/integration-tests.log like other modules * Fixed line length. * CR
…tVersion Bump parquet version
* Fixed k8s integration test - Enable spark ui explicitly for in-process submit - Fixed some broken assertions in integration tests - Fixed a scalastyle error in SparkDockerImageBuilder.scala - Log into target/integration-tests.log like other modules * Fixed line length. * CR
* Fixed k8s integration test - Enable spark ui explicitly for in-process submit - Fixed some broken assertions in integration tests - Fixed a scalastyle error in SparkDockerImageBuilder.scala - Log into target/integration-tests.log like other modules * Fixed line length. * CR
What changes were proposed in this pull request?
How was this patch tested?
Run the k8s integration tests manually. Before the patch the integration tests would fail even before the first case is executed. Now it finishes successfully with: