Skip to content

Commit ed607bd

Browse files
Alok  SinghAlok  Singh
authored andcommitted
[SPARK-8111][SparkR] As per suggestion, 1) using the version from sparkContext rather than the Sys.env.
2) change "Welcome to SparkR!" to "Welcome to" followed by Spark logo and version
1 parent acd5b85 commit ed607bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/pkg/inst/profile/shell.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
.First <- function() {
1919
home <- Sys.getenv("SPARK_HOME")
20-
sparkVer <- Sys.getenv("SPARK_VERSION")
2120
.libPaths(c(file.path(home, "R", "lib"), .libPaths()))
2221
Sys.setenv(NOAWT=1)
2322

@@ -28,8 +27,9 @@
2827
sc <- SparkR::sparkR.init()
2928
assign("sc", sc, envir=.GlobalEnv)
3029
sqlContext <- SparkR::sparkRSQL.init(sc)
30+
sparkVer <- SparkR:::callJMethod(sc, "version")
3131
assign("sqlContext", sqlContext, envir=.GlobalEnv)
32-
cat("\n Welcome to SparkR!")
32+
cat("\n Welcome to")
3333
cat("\n")
3434
cat(" ____ __", "\n")
3535
cat(" / __/__ ___ _____/ /__", "\n")

0 commit comments

Comments
 (0)