GitHub user nssalian opened a pull request:
https://github.com/apache/spark/pull/7362
[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
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nssalian/spark branch-SPARK-8743
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7362.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #7362
----
commit d8cb577b24f42a0509ee3a0fffb09181abf4137e
Author: Neelesh Srinivas Salian <[email protected]>
Date: 2015-07-13T01:38:36Z
Added registerSource to start() and removeSource to stop(). Wrote a test to
check the registration and de-registration
----
---
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]