spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo Vanzin (JIRA)" <>
Subject [jira] [Commented] (SPARK-21728) Allow SparkSubmit to use logging
Date Wed, 30 Aug 2017 19:55:01 GMT


Marcelo Vanzin commented on SPARK-21728:

Ok, with your file and the streaming example from Spark docs I see it's picking up the wrong
log level. I also ran into a separate issue with my patch; let me re-open this and fix these

> Allow SparkSubmit to use logging
> --------------------------------
>                 Key: SPARK-21728
>                 URL:
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.3.0
>            Reporter: Marcelo Vanzin
>            Assignee: Marcelo Vanzin
>            Priority: Minor
>             Fix For: 2.3.0
> 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
> 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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message