title: SparkContext.clean java.util.zip.ZipException: invalid LOC header (bad signature)
body: <p>This weird exception is terminating my spark task, any ideas?</p>
  
  <p>I am "submitting" a lot of smaller tasks to spark context via sc.parallelize(... seq of 256 items ...) . (don't ask me why but this is what I need).</p>
  
  <pre><code>Exception in thread "main" java.util.zip.ZipException: invalid LOC header (bad signature)
  at java.util.zip.ZipFile.read(Native Method)
  at java.util.zip.ZipFile.access$1400(ZipFile.java:56)
  at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679)
  at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415)
  at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
  at java.io.FilterInputStream.read(FilterInputStream.java:133)
  at java.io.FilterInputStream.read(FilterInputStream.java:107)
  at org.apache.spark.util.Utils$.copyStream(Utils.scala:347)
  at org.apache.spark.util.ClosureCleaner$.org$apache$spark$util$ClosureCleaner$$getClassReader(ClosureCleaner.scala:40)
  at org.apache.spark.util.ClosureCleaner$.getInnerClasses(ClosureCleaner.scala:84)
  at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:107)
  at org.apache.spark.SparkContext.clean(SparkContext.scala:1623)
  at org.apache.spark.rdd.RDD.flatMap(RDD.scala:295)
  at com.stratified.pdfingestion.CermineJob$.extractPdfText(CermineJob.scala:53)
  at com.stratified.pdfingestion.CermineJob$.execute(CermineJob.scala:41)
  at com.stratified.pdfingestion.CermineJob$$anonfun$main$1.apply(CermineJob.scala:31)
  at com.stratified.pdfingestion.CermineJob$$anonfun$main$1.apply(CermineJob.scala:29)
  at scala.collection.Iterator$class.foreach(Iterator.scala:727)
  at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
  at com.stratified.pdfingestion.CermineJob$.main(CermineJob.scala:29)
  at com.stratified.pdfingestion.CermineJob.main(CermineJob.scala)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
  at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:569)
  at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:166)
  at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:189)
  at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:110)
  at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
  </code></pre>