Fix Sparck StreamingListener for monasca-analytics

From Spark 2.2, it is necessary to implement the onStreamingStarted
method. This patch adds the method.

Change-Id: If2d9ef8ffad879319bceacad92dcf8e3d125f63e
This commit is contained in:
Hisashi Osanai 2019-11-02 05:30:28 +00:00
parent 5dbeff5746
commit 28251697fc
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ class DriverStreamingListener(streaming.StreamingListener):
logger.debug("Receiver has stopped: \n\t{}\n".format(
receiverStopped))
@staticmethod
def onStreamingStarted(streamingStarted):
logger.debug("Streaming has been started: \n\t{}\n".format(
streamingStarted))
def create_streaming_context(spark_context, config):
"""