Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchao committed Feb 15, 2024
1 parent 1fd8807 commit 638bb65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions core/src/main/scala/org/apache/spark/SparkEnv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ object SparkEnv extends Logging {
numCores,
ioEncryptionKey
)
// Set the memory manager since it needs to be initialized explicitly
env.initializeMemoryManager(numCores)
SparkEnv.set(env)
env
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,6 @@ private[spark] object CoarseGrainedExecutorBackend extends Logging {

val env = SparkEnv.createExecutorEnv(driverConf, arguments.executorId, arguments.bindAddress,
arguments.hostname, arguments.cores, cfg.ioEncryptionKey, isLocal = false)
// Set the memory manager since it needs to be initialized explicitly
env.initializeMemoryManager(arguments.cores)
// Set the application attemptId in the BlockStoreClient if available.
val appAttemptId = env.conf.get(APP_ATTEMPT_ID)
appAttemptId.foreach(attemptId =>
Expand Down

0 comments on commit 638bb65

Please sign in to comment.