Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/2283#discussion_r17511949
--- Diff:
yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
---
@@ -107,8 +103,11 @@ private[spark] class ApplicationMaster(args:
ApplicationMasterArguments,
}
}
}
- // Use priority 30 as it's higher than HDFS. It's the same priority
MapReduce is using.
- ShutdownHookManager.get().addShutdownHook(cleanupHook, 30)
+
+ // Use higher priority than FileSystem.
+ val priority = 20
--- End diff --
@sarutak an assertion is a good idea. Could you change the priority back
to 30 instead of 20? Also instead of having 20 hardcoded in 2 different places
can you make one static for this something like:
val SHUTDOWN_HOOK_PRIORITY: int = 30
in the ApplicationMaster object area.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]