Skip to content

Commit eaf63e6

Browse files
author
pgandhi
committed
[SPARK-21798]: No config to replace deprecated SPARK_CLASSPATH config for launching daemons like History Server
Adding new env variable SPARK_DAEMON_CLASSPATH to set classpath for launching daemons. Tested and verified for History Server and Standalone Mode.
1 parent 2d01cab commit eaf63e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

launcher/src/main/java/org/apache/spark/launcher/AbstractCommandBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ List<String> buildClassPath(String appClassPath) throws IOException {
136136

137137
Set<String> cp = new LinkedHashSet<>();
138138
addToClassPath(cp, appClassPath);
139-
139+
addToClassPath(cp, getenv("SPARK_DAEMON_CLASSPATH"));
140+
140141
addToClassPath(cp, getConfDir());
141142

142143
boolean prependClasses = !isEmpty(getenv("SPARK_PREPEND_CLASSES"));

0 commit comments

Comments
 (0)