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: 

Log files are not getting deleted automatically after logRetentionDuration internal

vinaykumar
New Contributor III

Hi team

Log files are not getting deleted automatically after logRetentionDuration internal from delta log folder and after analysis , I see checkpoint files are not getting created after 10 commits .

Below table properties using

spark.sql(    f"""

    ALTER TABLE Table_name

      SET TBLPROPERTIES (

        delta.logRetentionDuration = 'interval 1 hours',

        delta.deletedFileRetentionDuration = 'interval 1 hours',

        delta.checkpointRetentionDuration = '1 hours'

      )

    """

No checkpoint.parquet file getting generated in delta log

No checkpoint.parquet

6 REPLIES 6

Lakshay
Databricks Employee
Databricks Employee

Hi @vinay kumarโ€‹ , Could you please run "SHOW TBLPROPERTIES <table name>" command and attach a screenshot here?

vinaykumar
New Contributor III

Please find TBLPROPERTIES 

imageimageimage

Lakshay
Databricks Employee
Databricks Employee

Hi @vinay kumarโ€‹ , could you please answer the below questions as well

  1. What is the latest version of the delta table?
  2. Are there any checkpoint files created?
  3. Are you doing the commits using the job cluster?

  1. What is the latest version of the delta table? -

  1. Are there any checkpoint files created? Checkpoint is not getting created after 10 commitsimage
  2. Are you doing the commits using the job cluster? using all purpose cluster

Lakshay
Databricks Employee
Databricks Employee

Hi @vinay kumarโ€‹ , It is difficult to tell what is causing this issue. I advise you to raise a support case with us to have a closer look. You can raise a support case using the link: https://help.databricks.com/

Anonymous
Not applicable

Hi @vinay kumarโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

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