StreamingContext.
getActive
Return either the currently active StreamingContext (i.e., if there is a context started but not stopped) or None.