Currently, when the StreamingContext is closed, the registered metrics are not deregistered. If another streaming context is started, it throws a warning saying that the metrics are already registered.
The solution is to deregister the metrics when streamingcontext is stopped.
- is duplicated by
SPARK-8895 MetricsSystem.removeSource not called in StreamingContext.stop
- links to