aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--R/pkg/R/sparkR.R4
1 files changed, 4 insertions, 0 deletions
diff --git a/R/pkg/R/sparkR.R b/R/pkg/R/sparkR.R
index 62659b0c0c..ff5297ffd5 100644
--- a/R/pkg/R/sparkR.R
+++ b/R/pkg/R/sparkR.R
@@ -155,6 +155,10 @@ sparkR.sparkContext <- function(
existingPort <- Sys.getenv("EXISTING_SPARKR_BACKEND_PORT", "")
if (existingPort != "") {
+ if (length(packages) != 0) {
+ warning(paste("sparkPackages has no effect when using spark-submit or sparkR shell",
+ " please use the --packages commandline instead", sep = ","))
+ }
backendPort <- existingPort
} else {
path <- tempfile(pattern = "backend_port")