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

Support compact EventLog when there are illegal characters in the path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.4.8, 3.2.1
    • None
    • Deploy
    • None

    Description

      When a path has illegal characters, it is escaped.  The file will not be found and compactor  will not work.
       
      The path:  "/tmp/app%"
      Exception:
      java.io.FileNotFoundException: /tmp/app%25/events_7_app.compact.inprogress (No such file or directory)
      at java.io.FileOutputStream.open0(Native Method)
      at java.io.FileOutputStream.open(FileOutputStream.java:270)
      at java.io.FileOutputStream.(FileOutputStream.java:213)
      at java.io.FileOutputStream.(FileOutputStream.java:101)
      at org.apache.spark.deploy.history.EventLogFileWriter.initLogFile(EventLogFileWriters.scala:95)
      at org.apache.spark.deploy.history.SingleEventLogFileWriter.start(EventLogFileWriters.scala:223)
      at org.apache.spark.deploy.history.EventLogFileCompactor.rewrite(EventLogFileCompactor.scala:152)
      at org.apache.spark.deploy.history.EventLogFileCompactor.compact(EventLogFileCompactor.scala:94)

      Attachments

        Activity

          People

            Unassigned Unassigned
            lw33 w l
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: