Skip to content

Commit

Permalink
Changed Shutdown hook priority to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed Sep 13, 2014
1 parent 2f0aee3 commit 54eb68f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments,
}
}
}

// Use higher priority than FileSystem.
ShutdownHookManager.get().addShutdownHook(cleanupHook, FileSystem.SHUTDOWN_HOOK_PRIORITY + 1)
val priority = 20
assert(priority > FileSystem.SHUTDOWN_HOOK_PRIORITY)
ShutdownHookManager.get().addShutdownHook(cleanupHook, 20)

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

0 comments on commit 54eb68f

Please sign in to comment.