aboutsummaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorSteve Loughran <stevel@hortonworks.com>2015-12-03 10:33:06 -0800
committerMarcelo Vanzin <vanzin@cloudera.com>2015-12-03 10:33:06 -0800
commit8fa3e474a8ba180188361c0ad7e2704c3e2258d3 (patch)
tree8f1cffa9323d74d31752a21025eb3117ca7e811a /.gitattributes
parent43c575cb1766b32c74db17216194a8a74119b759 (diff)
downloadspark-8fa3e474a8ba180188361c0ad7e2704c3e2258d3.tar.gz
spark-8fa3e474a8ba180188361c0ad7e2704c3e2258d3.tar.bz2
spark-8fa3e474a8ba180188361c0ad7e2704c3e2258d3.zip
[SPARK-11314][YARN] add service API and test service for Yarn Cluster schedulers
This is purely the yarn/src/main and yarn/src/test bits of the YARN ATS integration: the extension model to load and run implementations of `SchedulerExtensionService` in the yarn cluster scheduler process —and to stop them afterwards. There's duplication between the two schedulers, yarn-client and yarn-cluster, at least in terms of setting everything up, because the common superclass, `YarnSchedulerBackend` is in spark-core, and the extension services need the YARN app/attempt IDs. If you look at how the the extension services are loaded, the case class `SchedulerExtensionServiceBinding` is used to pass in config info -currently just the spark context and the yarn IDs, of which one, the attemptID, will be null when running client-side. I'm passing in a case class to ensure that it would be possible in future to add extra arguments to the binding class, yet, as the method signature will not have changed, still be able to load existing services. There's no functional extension service here, just one for testing. The real tests come in the bigger pull requests. At the same time, there's no restriction of this extension service purely to the ATS history publisher. Anything else that wants to listen to the spark context and publish events could use this, and I'd also consider writing one for the YARN-913 registry service, so that the URLs of the web UI would be locatable through that (low priority; would make more sense if integrated with a REST client). There's no minicluster test. Given the test execution overhead of setting up minicluster tests, it'd probably be better to add an extension service into one of the existing tests. Author: Steve Loughran <stevel@hortonworks.com> Closes #9182 from steveloughran/stevel/feature/SPARK-1537-service.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions