cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

pyspark streaming failed for now reason

patojo94
New Contributor II

Hi everyone, I have a pyspark streaming reading from an aws kinesis that suddenly failed for no reason (I mean, we did not make any changes in the last time).

It is giving the following error:

ERROR MicroBatchExecution: Query kinesis_events_prod_bronze [id = 06233cfc-e27d-410d-858b-7c2546c5004f, runId = ace41ec4-c18b-421f-9e5b-bf5f75c96b12] terminated with error
java.lang.IllegalStateException: The transaction log has failed integrity checks. We recommend you contact Databricks support for assistance. To disable this check, set spark.databricks.delta.state.corruptionIsFatal to false

Do you have any idea of what could have happened or how to fix it?

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III

@patricio tojo​ , It just seems that some record coming from AWS kinesis is corrupted. I think you can debug it on Kinesis side.

View solution in original post

3 REPLIES 3

Hubert-Dudek
Esteemed Contributor III

@patricio tojo​ , It just seems that some record coming from AWS kinesis is corrupted. I think you can debug it on Kinesis side.

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @patricio tojo​,

Did you increase/reduce your Kinesis shards? or did you remove your checkpoint?

jcasanella
New Contributor III

@patricio tojo​ I've the same problem, however in my case is after migrating into unity catalog. Need to investigate a little more but adding this to my spark job, it works:

spark.conf.set("spark.databricks.delta.state.corruptionIsFatal", False)

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group