We are consuming a kinesis stream in spark and we have multiple shards in the stream. As per the code in the example
https://github.com/apache/spark/blob/d01594e8d186e63a