Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing data when reading data from CosmosDB changefeed #437

Open
ditruong opened this issue Jan 17, 2021 · 0 comments
Open

Missing data when reading data from CosmosDB changefeed #437

ditruong opened this issue Jan 17, 2021 · 0 comments

Comments

@ditruong
Copy link

Hi,

We are using azure-cosmosdb-spark to read data from cosmosdb changefeed.

Today, we got nothing from cosmosdb changefeed eventhough there are data inserted into cosmosdb.

Here is our configuration
`readConfig = {
"Endpoint": cosmos_host,
"Masterkey": cosmos_key,
"Database": "TicketMaster",
"Collection": "Tickets",
"ReadChangeFeed": "true",
"ChangeFeedQueryName": "Tickets-ChangeFeed",
"ChangeFeedStartFromTheBeginning": "false",
"InferStreamSchema": "false",
"ChangeFeedCheckpointLocation": checkpoint_cosmosdb_dir
}

changeFeed = (spark.readStream.format("com.microsoft.azure.cosmosdb.spark.streaming.CosmosDBSourceProvider").options(**readConfig).load())`

Is there anyway, we can reset the checkpoint value to reload missing data from previous checkpoint?

Thanks and regards,
Di Truong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant