You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2017/08/26 20:04:02 UTC

[jira] [Commented] (SPARK-21568) ConsoleProgressBar should only be enabled in shells

    [ https://issues.apache.org/jira/browse/SPARK-21568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16142912#comment-16142912 ] 

Dongjoon Hyun commented on SPARK-21568:
---------------------------------------

Hi, [~vanzin].
I'll try this.

> ConsoleProgressBar should only be enabled in shells
> ---------------------------------------------------
>
>                 Key: SPARK-21568
>                 URL: https://issues.apache.org/jira/browse/SPARK-21568
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.0
>            Reporter: Marcelo Vanzin
>            Priority: Minor
>
> This is the current logic that enables the progress bar:
> {code}
>     _progressBar =
>       if (_conf.getBoolean("spark.ui.showConsoleProgress", true) && !log.isInfoEnabled) {
>         Some(new ConsoleProgressBar(this))
>       } else {
>         None
>       }
> {code}
> That is based on the logging level; it just happens to align with the default configuration for shells (WARN) and normal apps (INFO).
> But if someone changes the default logging config for their app, this may break; they may silence logs by setting the default level to WARN or ERROR, and a normal application will see a lot of log spam from the progress bar (which is especially bad when output is redirected to a file, as is usually done when running in cluster mode).
> While it's possible to disable the progress bar separately, this behavior is not really expected.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org