aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorFelix Cheung <felixcheung_m@hotmail.com>2017-03-21 14:24:41 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2017-03-21 14:24:41 -0700
commita8877bdbba6df105740f909bc87a13cdd4440757 (patch)
treeada8153302373d3f1bf60e52ff79c9d262004c30 /R
parent7dbc162f12cc1a447c85a1a2c20d32ebb5cbeacf (diff)
downloadspark-a8877bdbba6df105740f909bc87a13cdd4440757.tar.gz
spark-a8877bdbba6df105740f909bc87a13cdd4440757.tar.bz2
spark-a8877bdbba6df105740f909bc87a13cdd4440757.zip
[SPARK-19237][SPARKR][CORE] On Windows spark-submit should handle when java is not installed
## What changes were proposed in this pull request? When SparkR is installed as a R package there might not be any java runtime. If it is not there SparkR's `sparkR.session()` will block waiting for the connection timeout, hanging the R IDE/shell, without any notification or message. ## How was this patch tested? manually - [x] need to test on Windows Author: Felix Cheung <felixcheung_m@hotmail.com> Closes #16596 from felixcheung/rcheckjava.
Diffstat (limited to 'R')
-rw-r--r--R/pkg/inst/tests/testthat/test_Windows.R1
1 files changed, 1 insertions, 0 deletions
diff --git a/R/pkg/inst/tests/testthat/test_Windows.R b/R/pkg/inst/tests/testthat/test_Windows.R
index e8d983426a..1d777ddb28 100644
--- a/R/pkg/inst/tests/testthat/test_Windows.R
+++ b/R/pkg/inst/tests/testthat/test_Windows.R
@@ -20,6 +20,7 @@ test_that("sparkJars tag in SparkContext", {
if (.Platform$OS.type != "windows") {
skip("This test is only for Windows, skipped")
}
+
testOutput <- launchScript("ECHO", "a/b/c", wait = TRUE)
abcPath <- testOutput[1]
expect_equal(abcPath, "a\\b\\c")