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

Allow SparkSubmit to use logging

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • Spark Core
    • None

    Description

      Currently, code in SparkSubmit cannot call classes or methods that initialize the Spark Logging framework. That is because at that time SparkSubmit doesn't yet know which application will run, and logging is initialized differently for certain special applications (notably, the shells).

      It would be better if either SparkSubmit did logging initialization earlier based on the application to be run, or did it in a way that could be overridden later when the app initializes.

      Without this, there are currently a few parts of SparkSubmit that duplicates code from other parts of Spark just to avoid logging. For example:

      • downloadFiles replicates code from Utils.scala
      • createTempDir replicates code from Utils.scala and installs its own shutdown hook
      • a few parts of the code could use SparkConf but can't right now because of the logging issue.

      Attachments

        1. sparksubmit.patch
          1 kB
          Jacek Laskowski
        2. logging.patch
          1.0 kB
          Jacek Laskowski

        Activity

          People

            vanzin Marcelo Masiero Vanzin
            vanzin Marcelo Masiero Vanzin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: