Skip to content

Commit 4c5cb93

Browse files
committed
Modified the priority for AM's shutdown hook
1 parent 217d1a4 commit 4c5cb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments,
104104
}
105105
}
106106
// Use higher priority than FileSystem.
107-
ShutdownHookManager.get().addShutdownHook(cleanupHook, FileSystem.SHUTDOWN_HOOK_PRIORITY - 1)
107+
ShutdownHookManager.get().addShutdownHook(cleanupHook, FileSystem.SHUTDOWN_HOOK_PRIORITY + 1)
108108

109109
// Call this to force generation of secret so it gets populated into the
110110
// Hadoop UGI. This has to happen before the startUserClass which does a

0 commit comments

Comments
 (0)