Skip to content

Commit c91d02a

Browse files
committed
rebase PR and take spark.master over master
1 parent 6968775 commit c91d02a

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

R/pkg/R/sparkR.R

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -368,30 +368,6 @@ sparkR.session <- function(
368368
}
369369
overrideEnvs(sparkConfigMap, paramMap)
370370
}
371-
<<<<<<< 8f0c35a4d0dd458719627be5f524792bf244d70a
372-
=======
373-
if (nzchar(master)) {
374-
sparkConfigMap[["spark.master"]] <- master
375-
}
376-
377-
# do not download if it is run in the sparkR shell
378-
if (!nzchar(master) || is_master_local(master)) {
379-
if (!is_sparkR_shell()) {
380-
if (is.na(file.info(sparkHome)$isdir)) {
381-
msg <- paste0("Spark not found in SPARK_HOME: ",
382-
sparkHome,
383-
" .\nTo search in the cache directory. ",
384-
"Installation will start if not found.")
385-
message(msg)
386-
packageLocalDir <- install.spark()
387-
sparkHome <- packageLocalDir
388-
} else {
389-
msg <- paste0("Spark package is found in SPARK_HOME: ", sparkHome)
390-
message(msg)
391-
}
392-
}
393-
}
394-
>>>>>>> [SPARK-17210][SPARKR] sparkr.zip is not distributed to executors when run sparkr in RStudio
395371

396372
if (!exists(".sparkRjsc", envir = .sparkREnv)) {
397373
retHome <- sparkCheckInstall(sparkHome, master)

0 commit comments

Comments
 (0)