aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests/testthat/test_rdd.R
diff options
context:
space:
mode:
authorFelix Cheung <felixcheung_m@hotmail.com>2016-07-17 19:02:21 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-07-17 19:02:21 -0700
commitd27fe9ba6763aae6a5e48f16d7cbd85658df7cf7 (patch)
tree26d85a87f9f04f8ccf3ff48c5e612bd0c202d44e /R/pkg/inst/tests/testthat/test_rdd.R
parent7b84758034b9bceca1168438ef5d0beefd5b5273 (diff)
downloadspark-d27fe9ba6763aae6a5e48f16d7cbd85658df7cf7.tar.gz
spark-d27fe9ba6763aae6a5e48f16d7cbd85658df7cf7.tar.bz2
spark-d27fe9ba6763aae6a5e48f16d7cbd85658df7cf7.zip
[SPARK-16027][SPARKR] Fix R tests SparkSession init/stop
## What changes were proposed in this pull request? Fix R SparkSession init/stop, and warnings of reusing existing Spark Context ## How was this patch tested? unit tests shivaram Author: Felix Cheung <felixcheung_m@hotmail.com> Closes #14177 from felixcheung/rsessiontest.
Diffstat (limited to 'R/pkg/inst/tests/testthat/test_rdd.R')
-rw-r--r--R/pkg/inst/tests/testthat/test_rdd.R4
1 files changed, 3 insertions, 1 deletions
diff --git a/R/pkg/inst/tests/testthat/test_rdd.R b/R/pkg/inst/tests/testthat/test_rdd.R
index 429311d292..508a3a7dfd 100644
--- a/R/pkg/inst/tests/testthat/test_rdd.R
+++ b/R/pkg/inst/tests/testthat/test_rdd.R
@@ -18,7 +18,7 @@
context("basic RDD functions")
# JavaSparkContext handle
-sparkSession <- sparkR.session()
+sparkSession <- sparkR.session(enableHiveSupport = FALSE)
sc <- callJStatic("org.apache.spark.sql.api.r.SQLUtils", "getJavaSparkContext", sparkSession)
# Data
@@ -800,3 +800,5 @@ test_that("Test correct concurrency of RRDD.compute()", {
count <- callJMethod(zrdd, "count")
expect_equal(count, 1000)
})
+
+sparkR.session.stop()