简体   繁体   中英

How logs printed directly onto the console in yarn-cluster mode using spark

我是Spark的新手,我想在纱线簇模式下使用apache spark在控制台上打印日志。

You need to check the value in log4j.properties file. In my case i have this file in /etc/spark/conf.dist directory

log4j.rootCategory=INFO,console

INFO - prints the all the logs on the console. You can change the value to ERROR, WARN to limit the information you would like to see on the console as sparks logs can be overwhelming

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM