diff options
author | Neelesh Srinivas Salian <nsalian@cloudera.com> | 2015-07-13 15:46:51 -0700 |
---|---|---|
committer | Tathagata Das <tathagata.das1565@gmail.com> | 2015-07-13 15:46:51 -0700 |
commit | b7bcbe25f90ba4e78b548465bc80d4de1d2c4a4a (patch) | |
tree | 4a729a2e03af1f5ca1cb0d1b2dd997995cd87bf4 /ec2 | |
parent | 0aed38e4498b24d372bfdc7001959e78536369a1 (diff) | |
download | spark-b7bcbe25f90ba4e78b548465bc80d4de1d2c4a4a.tar.gz spark-b7bcbe25f90ba4e78b548465bc80d4de1d2c4a4a.tar.bz2 spark-b7bcbe25f90ba4e78b548465bc80d4de1d2c4a4a.zip |
[SPARK-8743] [STREAMING] Deregister Codahale metrics for streaming when StreamingContext is closed
The issue link: https://issues.apache.org/jira/browse/SPARK-8743
Deregister Codahale metrics for streaming when StreamingContext is closed
Design:
Adding the method calls in the appropriate start() and stop () methods for the StreamingContext
Actions in the PullRequest:
1) Added the registerSource method call to the start method for the Streaming Context.
2) Added the removeSource method to the stop method.
3) Added comments for both 1 and 2 and comment to show initialization of the StreamingSource
4) Added a test case to check for both registration and de-registration of metrics
Previous closed PR for reference: https://github.com/apache/spark/pull/7250
Author: Neelesh Srinivas Salian <nsalian@cloudera.com>
Closes #7362 from nssalian/branch-SPARK-8743 and squashes the following commits:
7d998a3 [Neelesh Srinivas Salian] Removed the Thread.sleep() call
8b26397 [Neelesh Srinivas Salian] Moved the scalatest.{} import
0e8007a [Neelesh Srinivas Salian] moved import org.apache.spark{} to correct place
daedaa5 [Neelesh Srinivas Salian] Corrected Ordering of imports
8873180 [Neelesh Srinivas Salian] Removed redundancy in imports
59227a4 [Neelesh Srinivas Salian] Changed the ordering of the imports to classify scala and spark imports
d8cb577 [Neelesh Srinivas Salian] Added registerSource to start() and removeSource to stop(). Wrote a test to check the registration and de-registration
Diffstat (limited to 'ec2')
0 files changed, 0 insertions, 0 deletions