title: Spark not able to fetch events from Amazon Kinesis
body: <p>I have been trying to get Spark read events from Kinesis recently but am having problem in receiving the events. While Spark is able to connect to Kinesis and is able to get metadata from Kinesis, Its not able to get events from it. It always fetches zero elements back.</p>
  
  <p>There are no errors, just empty results back. Spark is able to get metadata (Eg. number of shards in kinesis etc). </p>
  
  <p>I have used these [1 &amp; 2] guides for getting it working but have not got much luck yet. I have also tried couple of suggestions from SO [3]. The cluster has sufficient resources/cores available.</p>
  
  <p>We have seen a version conflict in Protobuf Version between Spark and Kinesis which could also be a cause for this behavior. Spark uses protobuf-java version 2.5.0 and kinesis probably uses protobuf-java-2.6.1.jar. </p>
  
  <p>Just wondered if anyone has come across this behavior or, has got spark working with kinesis.</p>
  
  <p>Have tried with Spark 1.5.0, Spark 1.6.0.</p>
  
  <ol>
  <li><a href="http://spark.apache.org/docs/latest/streaming-kinesis-integration.html" rel="nofollow noreferrer">http://spark.apache.org/docs/latest/streaming-kinesis-integration.html</a></li>
  <li><p><a href="https://github.com/apache/spark/blob/master/extras/kinesis-asl/src/main/scala/org/apache/spark/examples/streaming/KinesisWordCountASL.scala" rel="nofollow noreferrer">https://github.com/apache/spark/blob/master/extras/kinesis-asl/src/main/scala/org/apache/spark/examples/streaming/KinesisWordCountASL.scala</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/26941844/apache-spark-kinesis-sample-not-working">Apache Spark Kinesis Sample not working</a></p></li>
  </ol>