You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2018/05/18 21:49:00 UTC

[jira] [Resolved] (SPARK-17723) "log4j:WARN No appenders could be found for logger" for spark-shell --proxy-user user

     [ https://issues.apache.org/jira/browse/SPARK-17723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcelo Vanzin resolved SPARK-17723.
------------------------------------
    Resolution: Cannot Reproduce

This should have been fixed by SPARK-21728 (which initializes the logging system before this code runs). I tried locally and don't see that message. Please re-open if it's still an issue.

> "log4j:WARN No appenders could be found for logger" for spark-shell --proxy-user user
> -------------------------------------------------------------------------------------
>
>                 Key: SPARK-17723
>                 URL: https://issues.apache.org/jira/browse/SPARK-17723
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Submit
>    Affects Versions: 2.1.0
>            Reporter: Jacek Laskowski
>            Priority: Minor
>
> WARN messages are printed out when {{spark-shell}} starts with {{--proxy-user}} command-line option.
> {code}
> $ ./bin/spark-shell --proxy-user user
> log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
> Setting default log level to "WARN".
> To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
> Spark context Web UI available at http://192.168.65.1:4040
> Spark context available as 'sc' (master = local[*], app id = local-1475152321458).
> Spark session available as 'spark'.
> Welcome to
>       ____              __
>      / __/__  ___ _____/ /__
>     _\ \/ _ \/ _ `/ __/  '_/
>    /___/ .__/\_,_/_/ /_/\_\   version 2.1.0-SNAPSHOT
>       /_/
> Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_102)
> Type in expressions to have them evaluated.
> Type :help for more information.
> scala> :quit
> $ ./bin/spark-shell --version
> Welcome to
>       ____              __
>      / __/__  ___ _____/ /__
>     _\ \/ _ \/ _ `/ __/  '_/
>    /___/ .__/\_,_/_/ /_/\_\   version 2.1.0-SNAPSHOT
>       /_/
> Branch master
> Compiled by user jacek on 2016-09-29T07:33:19Z
> Revision 37eb9184f1e9f1c07142c66936671f4711ef407d
> Url https://github.com/apache/spark.git
> Type --help for more information.
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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