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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: Structured Streaming
    • Labels:
      None
    • Environment:

      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

              • Assignee:
                Unassigned
                Reporter:
                yangcong3643 code dragon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: