title: How to run multiple actions on same Spark Streaming
body: <p>I am using Spark-streaming along with RabbitMQ. So, streaming job fetched the data from RabbitMQ and apply some transformation and actions. So, I want to know how to apply multiple actions (i.e. calculate two different feature sets) on the same streaming. Is it possible? If Yes, How to pass the streaming object to multiple classes as mentioned in the code?</p>
  
  <pre><code>            val config = ConfigFactory.parseFile(new File("SparkStreaming.conf"))
              val conf = new SparkConf(true).setAppName(config.getString("AppName"))
              conf.set("spark.cleaner.ttl", "120000")         
  
              val sparkConf = new SparkContext(conf)
              val ssc = new StreamingContext(sparkConf, Seconds(config.getLong("SparkBatchInterval")))
  
              val rabbitParams =  Map("storageLevel" -&gt; "MEMORY_AND_DISK_SER_2","queueName" -&gt; config.getString("RealTimeQueueName"),"host" -&gt; config.getString("QueueHost"), "exchangeName" -&gt; config.getString("QueueExchangeName"), "routingKeys" -&gt; config.getString("QueueRoutingKey"))
              val receiverStream = RabbitMQUtils.createStream(ssc, rabbitParams)
              receiverStream.start()  
  </code></pre>
  
  <p>How to process stream from here :</p>
  
  <pre><code>            val objProcessFeatureSet1 = new ProcessFeatureSet1(Some_Streaming_Object)
              val objProcessFeatureSet2 = new ProcessFeatureSet2(Some_Streaming_Object)
  
              ssc.start()
              ssc.awaitTermination()  
  </code></pre>