title: Parent Shard Exists but not the Child Shard
body: <p>I am setting up a Spark Streaming project with Kinesis and when I try to connect to my Kinesis stream I am getting the following error from Spark:</p>
  
  <pre><code>ERROR ShardSyncTask: Caught exception while sync'ing Kinesis shards and leases
  com.amazonaws.services.kinesis.clientlibrary.exceptions.internal.KinesisClientLibIOException: Parent shard shardId-000000000000 exists but not the child shard shardId-000000000002
  </code></pre>
  
  <p>When I post test data to this stream or read data from the stream using the base Amazon libraries I get no errors, this only occurs when I try to connect with Spark.</p>
  
  <p>Below is the code that I am using for my tests:</p>
  
  <pre><code>val conf = new SparkConf().setMaster("local[2]").setAppName("KinesisCounter")
  val ssc = new StreamingContext(conf, Seconds(1))
  val rawStream = KinesisUtils.createStream(ssc, "dev-test", "kinesis.us-east-1.amazonaws.com", Duration(1000), InitialPositionInStream.TRIM_HORIZON, StorageLevel.MEMORY_ONLY)
  rawStream.map(msg =&gt; new String(msg)).count.print
  </code></pre>