title: Spark Scala error while loading BytesWritable, invalid LOC header (bad signature)
body: <p>Using <code>sbt package</code> I have the following error</p>
  
  <blockquote>
    <p>Spark Scala error while loading BytesWritable, invalid LOC header (bad signature)</p>
  </blockquote>
  
  <p>My code is </p>
  
  <pre><code>....
  import org.apache.spark.SparkContext
  import org.apache.spark.SparkContext._
  import org.apache.spark.SparkConf
  ......
  
  object Test{
      def main(args: Array[String]) {
      val conf = new SparkConf().setAppName("Test")
      val sc = new SparkContext(conf) // the error is due by this 
      ...... 
      }
  }
  </code></pre>