GitHub user gengliangwang opened a pull request:

    https://github.com/apache/spark/pull/23189

    [SPARK-26235][Core] Change log level for 
ClassNotFoundException/NoClassDefFoundError in SparkSubmit to Error

    ## What changes were proposed in this pull request?
    
    In my local setup, I set log4j root category as ERROR 
(https://stackoverflow.com/questions/27781187/how-to-stop-info-messages-displaying-on-spark-console
 , first item show up if we google search "set spark log level".) When I run 
such command 
    ``` 
    spark-submit --class foo bar.jar 
    ``` 
    Nothing shows up, and the script exits.  
    
    After quick investigation, I think the log level for 
ClassNotFoundException/NoClassDefFoundError in SparkSubmit should be ERROR 
instead of WARN. Since the whole process exit because of the exception/error.
    
    Before https://github.com/apache/spark/pull/20925, the message is not 
controlled by `log4j.rootCategory`. 
    
    ## How was this patch tested?
    
    Manual check.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gengliangwang/spark changeLogLevel

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/23189.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #23189
    
----
commit 158d421757989740345be4e52fbc333b08356b5b
Author: Gengliang Wang <gengliang.wang@...>
Date:   2018-11-30T14:23:44Z

    change log level

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to