title: Why I get unread block data - Illegal State Exception?
body: <p>I only have the following:</p>
  
  <pre><code>JavaPairRDD&lt;ImmutableBytesWritable, Result&gt; dataRDD = jsc
              .newAPIHadoopRDD(
                      hbase_conf,
                      TableInputFormat.class,
                      org.apache.hadoop.hbase.io.ImmutableBytesWritable.class,
                      org.apache.hadoop.hbase.client.Result.class);
  
  sparkConf.log().info("Count of data = "+String.valueOf(dataRDD.count()));
  </code></pre>
  
  <p>I get this exception:</p>
  
  <pre><code>Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 4 times, most recent failure: Lost task 0.3 in stage 0.0 (TID 3, server-name): java.lang.IllegalStateException: unread block data
      java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2394)
  </code></pre>