-
- Downloads
[SPARK-11672][ML] Set active SQLContext in MLlibTestSparkContext.beforeAll
Still saw some error messages caused by `SQLContext.getOrCreate`: https://amplab.cs.berkeley.edu/jenkins/job/Spark-Master-SBT/3997/AMPLAB_JENKINS_BUILD_PROFILE=hadoop2.3,label=spark-test/testReport/junit/org.apache.spark.ml.util/JavaDefaultReadWriteSuite/testDefaultReadWrite/ This PR sets the active SQLContext in beforeAll, which is not automatically set in `new SQLContext`. This makes `SQLContext.getOrCreate` return the right SQLContext. cc: yhuai Author: Xiangrui Meng <meng@databricks.com> Closes #9694 from mengxr/SPARK-11672.3.
Showing
- mllib/src/main/scala/org/apache/spark/ml/util/ReadWrite.scala 5 additions, 2 deletions...b/src/main/scala/org/apache/spark/ml/util/ReadWrite.scala
- mllib/src/test/scala/org/apache/spark/mllib/util/MLlibTestSparkContext.scala 1 addition, 0 deletions...a/org/apache/spark/mllib/util/MLlibTestSparkContext.scala
Please register or sign in to comment