title: Can Spark streaming and Spark applications be run within the same YARN cluster?
body: <p>Hello people and happy new year ;) !</p>
  
  <p>I am bulding a lambda architecture with Apache Spark, HDFS and Elastichsearch.
  In the following picture, here what I am trying to do:
  <a href="https://i.stack.imgur.com/zpLGz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zpLGz.png" alt="enter image description here"></a></p>
  
  <p>So far, I have written the source code in java for my spark streaming and spark applications. I read in the spark documentation that spark can be run in a Mesos or YARN clutser. As indicated in the picture, I have already a hadoop cluster. Is it possible to run my spark streaming and spark application within the same hadoop cluster ? If yes, is there any particular configuration to do (for instance the number of nodes, RAM...). Or do I have to add a hadoop cluster specialy for spark streaming ?</p>
  
  <p>I hope my explanation is clear.</p>
  
  <p>Yassir</p>