You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jagadeesan A S (JIRA)" <ji...@apache.org> on 2016/09/15 05:13:20 UTC

[jira] [Commented] (SPARK-17543) Missing log4j config file for tests in common/network-shuffle

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

Jagadeesan A S commented on SPARK-17543:
----------------------------------------

Started working on this.

> Missing log4j config file for tests in common/network-shuffle
> -------------------------------------------------------------
>
>                 Key: SPARK-17543
>                 URL: https://issues.apache.org/jira/browse/SPARK-17543
>             Project: Spark
>          Issue Type: Bug
>            Reporter: Frederick Reiss
>            Priority: Trivial
>              Labels: starter
>
> *This is a small starter task to help new contributors practice the pull request and code review process.*
> The Maven module {{common/network-shuffle}} does not have a log4j configuration file for its test cases. Usually these configuration files are located inside each module, in the directory {{src/test/resources}}. The missing configuration file leads to a scary-looking but harmless series of errors and stack traces in Spark build logs:
> {noformat}
> 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.
> log4j:ERROR Could not read configuration file from URL [file:src/test/resources/log4j.properties].
> java.io.FileNotFoundException: src/test/resources/log4j.properties (No such file or directory)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:146)
>         at java.io.FileInputStream.<init>(FileInputStream.java:101)
>         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
>         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
>         at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:557)
>         at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
>         at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
>         at org.apache.log4j.Logger.getLogger(Logger.java:104)
>         at io.netty.util.internal.logging.Log4JLoggerFactory.newInstance(Log4JLoggerFactory.java:29)
>         at io.netty.util.internal.logging.InternalLoggerFactory.newDefaultFactory(InternalLoggerFactory.java:46)
>         at io.netty.util.internal.logging.InternalLoggerFactory.<clinit>(InternalLoggerFactory.java:34)
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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