title: Can we run spark on mesos using the precompiled hadoop-spark package?
body: <p>I have a Mesos Cluster on which I want to run Spark jobs.</p>
  
  <p>I have downloaded the spark precompiled package and I can use the spark-shell by simply decompressing the archive.</p>
  
  <p>So far, I haven't managed to run spark jobs on the Mesos Cluster.</p>
  
  <p><strong>First question</strong> : Do I need to install and build Spark from source to get it work on Mesos? And Does this precompiled package used only for Spark on Yarn and Hadoop?</p>
  
  <p><strong>Second question</strong> : Can anyone provide the best way to build spark. I have found many ways like :</p>
  
  <ul>
  <li><code>sbt clean assembly</code></li>
  <li><code>./build/mvn -Pmesos -DskipTests clean package</code></li>
  <li><code>./build/sbt package</code></li>
  </ul>
  
  <p>I don't know which one to use, and whether they are all correct or not.</p>