Open dennyglee opened 6 years ago
The issue is caused by a corruption of the ChangeFeedCheckpointLocation
. For example, my original collection was:
val sourceConfigMap = Map(
"Endpoint" -> "https://rainier.documents.azure.com:443/",
"Masterkey" -> "[my master key]",
"Database" -> "seahawks",
"Collection" -> "tweets",
"ConnectionMode" -> "Gateway",
"ChangeFeedCheckpointLocation" -> **"checkpointlocation"**,
"changefeedqueryname" -> "Streaming Query from Cosmos DB Change Feed Internal Count"
)
and changed it to:
val sourceConfigMap = Map(
"Endpoint" -> "https://rainier.documents.azure.com:443/",
"Masterkey" -> "[my master key]",
"Database" -> "seahawks",
"Collection" -> "tweets",
"ConnectionMode" -> "Gateway",
"ChangeFeedCheckpointLocation" -> **"checkpointlocation2"**,
"changefeedqueryname" -> "Streaming Query from Cosmos DB Change Feed Internal Count"
)
Note, we should fix this so if there is an error based on the ChangeFeedCheckpointLocation
, the error should be more descriptive than java.io.EOFException at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)
When running the Structured Streams Demo and get the error: