File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
core/src/main/scala/org/apache/spark/util Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ private[spark] object Utils extends Logging {
289
289
maxAttempts + " attempts!" )
290
290
}
291
291
try {
292
- if (namePrefix.contains(" executor" )) {
292
+ if (! namePrefix.equalsIgnoreCase( " executor-driver " ) && namePrefix.contains(" executor" )) {
293
293
dir = new File (root, namePrefix + " -" + nonNegativeHash(namePrefix).toString.reverse)
294
294
} else {
295
295
dir = new File (root, namePrefix + " -" + UUID .randomUUID.toString)
@@ -794,6 +794,10 @@ private[spark] object Utils extends Logging {
794
794
// Note that we don't want this if the shuffle service is enabled because we want to
795
795
// continue to serve shuffle files after the executors that wrote them have already exited.
796
796
Array (conf.getenv(" MESOS_DIRECTORY" ))
797
+ } else if (conf.get(" spark.master" ).contains(" lambda" )) {
798
+ val sparkApplicationId = conf.get(" spark.app.id" )
799
+ val lambdaTmp = System .getProperty(" java.io.tmpdir" ).split(" ," ).map(tmp => tmp.concat(s " / ${sparkApplicationId}" ))
800
+ lambdaTmp
797
801
} else {
798
802
if (conf.getenv(" MESOS_DIRECTORY" ) != null && shuffleServiceEnabled) {
799
803
logInfo(" MESOS_DIRECTORY available but not using provided Mesos sandbox because " +
You can’t perform that action at this time.
0 commit comments