Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-28712

spark structured stream with kafka don't really delete temp files in spark standalone cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.4.3
    • None
    • Structured Streaming
    • None
    • redhat 7

      jdk 1.8

      scala 2.11.12
      spark standalone cluster 2.4.3
      kafka 0.10.2.1
       

    Description

      the folder in  Driver

      /tmp/temporary-xxxxxxxx

       takes up all the space in /tmp after runing spark structured stream job a long time.

      it is mainly under the offsets and commits folders.but when I watch it by us command

      du -sh offsets     du -sh commits

      it got more than 600M,but when We  use command

      ll -h offsets       ll -h commits

      it got 400K.

      I think it is because when the file is deleted,it is still used in job.

      It wasn't released only if the job is stopped.

      How can I solve it?

      We use 

      df.writeStream.trigger(ProcessingTime("1 seconds"))
      

      not

      df.writeStream.trigger(Continuous("1 seconds"))
      

      Is there something wrong here?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yangcong3643 code dragon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: