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

Unable to use custom log4j appender in spark executor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Incomplete
    • 1.3.1
    • None
    • Spark Core

    Description

      In CoarseGrainedExecutorBackend, log4j is initialized, before userclasspath gets registered:

      https://github.com/apache/spark/blob/v1.3.1/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala#L126

      In order to use custom appender, one has to distribute it using `spark-submit --files` and set it via spark.executor.extraClassPath

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmvk David Morávek
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: