title: How to integrate Spark with Scala project in IntelliJ IDE?
body: <p>I am using IntelliJ IDE to play with Scala and Spark. In this IDE I created a Scala project with a Scala object (see picture).</p>
  
  <p><a href="https://i.stack.imgur.com/rO0F8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rO0F8.jpg" alt="enter image description here"></a></p>
  
  <p>I used the sample Regression code from this <a href="http://spark.apache.org/docs/latest/mllib-ensembles.html" rel="nofollow noreferrer">web site</a>.</p>
  
  <p>I also downloaded Spark Framework as a non-Maven user from GitHub (as explained <a href="http://sparkjava.com/download.html" rel="nofollow noreferrer">here</a>).</p>
  
  <p>My question is how to link this Spark Framework with my Scala project? Also do I need to integrate some additional libraries to be able to work with Spark MLLib?</p>