You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2017/01/31 18:09:51 UTC

[jira] (SPARK-10057) Faill to load class org.slf4j.impl.StaticLoggerBinder

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

Wes McKinney commented on SPARK-10057:
--------------------------------------

I have been having a really horrible time trying to get Spark SQL to emit log messages when run from PySpark

{code}
$ pyspark
Python 3.5.3 | packaged by conda-forge | (default, Jan 23 2017, 19:01:48) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
17/01/31 12:59:35 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
17/01/31 12:59:35 WARN Utils: Your hostname, badgerpad15 resolves to a loopback address: 127.0.0.1; using 172.31.22.23 instead (on interface wlan0)
17/01/31 12:59:35 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /__ / .__/\_,_/_/ /_/\_\   version 2.2.0-SNAPSHOT
      /_/

Using Python version 3.5.3 (default, Jan 23 2017 19:01:48)
SparkSession available as 'spark'.
>>> df = sqlContext.read.parquet('example.parquet')
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
>>> 
{code}

After this, any logging messages in Spark SQL that I'd like to see are suppressed

This is on vanilla Spark trunk. I'm not sure if this is the same bug, but can anyone give any advance? 

> Faill to load class org.slf4j.impl.StaticLoggerBinder
> -----------------------------------------------------
>
>                 Key: SPARK-10057
>                 URL: https://issues.apache.org/jira/browse/SPARK-10057
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.5.0, 1.6.0
>            Reporter: Davies Liu
>
> Some loggings are dropped, because it can't load class "org.slf4j.impl.StaticLoggerBinder"
> {code}
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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