title: Spark streaming StreamingContext active count
body: <p>The <a href="http://spark.apache.org/docs/latest/streaming-programming-guide.html" rel="nofollow" title="spark docs">spark docs</a> state:</p>
  
  <blockquote>
    <p>Only one StreamingContext can be active in a JVM at the same time.</p>
  </blockquote>
  
  <p>Imagine a case where I am planning to read/process data from two Kafka topics, where there is one job fetching data from one Kafka topic, and another fetching data from the other kafka topic. Can I trigger these two jobs in parallel on the same hadoop cluster simultaneously?</p>
  
  <p>It also states,</p>
  
  <blockquote>
    <p>Once a context has been stopped, it cannot be restarted.</p>
  </blockquote>
  
  <p>So if I have to stop the spark job due to some reason, what is the way to get it restarted? Do I trigger it through oozie or something?</p>