title: import Spark source code into intellij, build Error: not found: type SparkFlumeProtocol and EventBatch
body: <p><strong>IntelliJ</strong>: 14.1.4</p>
  
  <p><strong>Spark</strong>: 1.5 release source code</p>
  
  <p>I'm importing Spark source code into IntelliJ, and following steps on <a href="https://cwiki.apache.org/confluence/display/SPARK/Useful+Developer+Tools#UsefulDeveloperTools-IntelliJ" rel="nofollow noreferrer">Spark website</a>.</p>
  
  <p>I'm getting errors below when building and compiling the project. I've googled around and tried what is <a href="http://apache-spark-developers-list.1001551.n3.nabble.com/A-Spark-Compilation-Question-td8402.html" rel="nofollow noreferrer">suggested here in spark user list</a> to "Generate Sources and Update Folders" in Maven tool bar for "Spark Project External Flume Sink", but still with same errors.</p>
  
  <p>I'm pretty sure it's a resolve issue since all other classes are successfully resolved. Maybe I'm not using IntelliJ correctly? Any suggestions please?</p>
  
  <pre><code>Error:(45, 66) not found: type SparkFlumeProtocol
    val transactionTimeout: Int, val backOffInterval: Int) extends SparkFlumeProtocol with Logging {
                                                                   ^
  Error:(70, 39) not found: type EventBatch
    override def getEventBatch(n: Int): EventBatch = {
  </code></pre>