当前位置:网站首页>idea removes spark logs
idea removes spark logs
2022-08-04 14:03:00 【I want to use the code to my favorite girl】
Spark will allow info, information by default, it has log4j built in
Therefore, we have 3 ways to solve it
1. Set the log level directly in the code, including adding in direct classes, and using inherited classes (not recommended)
2. Modify his global configuration (not recommended)
3. Add log4j.prperties
Note that there can be no other logs in the pom
Especially these two should be deleted, otherwise the log4j.proerpties you set will be invalid
org.slf4j slf4j-simple 1.7.25 compile org.slf4j slf4j-log4j12 Here we use the third one
Create a file like this with the same name

Add content to the file
log4j.rootCategory=ERROR, consolelog4j.appender.console=org.apache.log4j.ConsoleAppenderlog4j.appender.console.target=System.errlog4j.appender.console.layout=org.apache.log4j.PatternLayoutlog4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n# Set the default spark-shell log level to ERROR. When running the spark-shell, the # log level for this class is used to overwrite the root logger's log level, so that# the user can have different defaults for the shell and regular Spark apps.log4j.logger.org.apache.spark.repl.Main=ERROR# Settings to quiet third party logs that are too verboselog4j.logger.org.spark_project.jetty=ERRORlog4j.logger.org.spark_project.jetty.util.component.AbstractLifeCycle=ERRORlog4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=ERRORlog4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=ERRORlog4j.logger.org.apache.parquet=ERRORlog4j.logger.parquet=ERROR# SPARK-9183: Settings to avoid annoying messages when looking up nonexistent UDFs in SparkSQL with Hive supportlog4j.logger.org.apache.hadoop.hive.metastore.RetryingHMSHandler=FATALlog4j.logger.org.apache.hadoop.hive.ql.exec.FunctionRegistry=ERRORBefore the test

After the test

边栏推荐
猜你喜欢

centos7安装mysql急速版

漏洞复现 - - - Alibaba Nacos权限认证绕过

CReFF缓解长尾数据联邦学习(IJCAI 2022)

手搓一个“七夕限定”,用3D Engine 5分钟实现烟花绽放效果

idea permanent activation tutorial (new version)

橄榄枝大课堂APP正式启动上线

智能电视可以打开小程序应用,再也不用头痛内存了

Analysis and application of portrait segmentation technology

leetcode 48. Rotate Image (Medium)

Interviewer: How to view files containing abc string in /etc directory?
随机推荐
FreeConfig.h文件
LM2596有没有可以替代的?LM2576可以
GeoAO:一种快速的环境光遮蔽方案
中大型商业银行堡垒机升级改造就用行云管家!必看!
router---路由守卫
(记录)异步并发,多线程处理表的统计
SLAM 04.视觉里程计-1-相机模型
ICML 2022 | 图神经网络的局部增强
Interviewer: How to view files containing abc string in /etc directory?
考研上岸又转行软件测试,从5k到13k完美逆袭,杭州校区小哥哥拒绝平庸终圆梦!
router---mode
php中的ceil和floo以及round函数「建议收藏」
面试官:说一下NIO和BIO的区别
量化细胞内的信息流:机器学习时代下的研究进展
How to find the location of a pdf file in endnote literature
How to stress the MySQL performance indicators TPS\QPS\IOPS?
Oracle RAC环境下vip/public/private IP的区别
将 Sentinel 熔断限流规则持久化到 Nacos 配置中心
Execution failed for task ‘:xxx:generateReleaseRFile‘.
《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架