当前位置:网站首页>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=ERROR
Before the test
After the test
边栏推荐
- Utility function---string processing
- 《中国综合算力指数》《中国算力白皮书》《中国存力白皮书》《中国运力白皮书》在首届算力大会上重磅发出
- nVisual二次开发——第二章 nVisual API操作指南Swagger使用
- MySQL性能指标TPS\QPS\IOPS如何压测?
- How to find the location of a pdf file in endnote literature
- 编程思想_编程有必要给孩子学吗?
- 面试官:说一下NIO和BIO的区别
- CCF GLCC正式开营|九州云开源专家携丰厚奖金,助力高校开源推广
- 两款移相振荡器的对比
- Map常见的遍历方式-keySet 和 entrySet
猜你喜欢
汉诺塔怎么玩
九州云出席领航者线上论坛,共话5G MEC边缘计算现状、挑战和未来
面试官:如何查看/etc目录下包含abc字符串的文件?
How to stress the MySQL performance indicators TPS\QPS\IOPS?
leetcode 48. Rotate Image 旋转图像(Medium)
节省50%成本!京东云重磅发布新一代混合CDN产品
Button control switch 4017 digital circuit chip
Analysis and application of portrait segmentation technology
Rust 从入门到精通04-变量
Unity插件:使用PopulationSystem制作行走交流的路人
随机推荐
阿里老鸟终于把测试用例怎么写说的明明白白了,小鸟必看
职场漫谈:为什么越是内卷的行业越有人争着抢着往里冲?好奇怪的说...
router---动态路由匹配
zabbix自定义图形
汉诺塔怎么玩
国家安全机关对涉嫌危害国家安全犯罪嫌疑人杨智渊实施刑事拘传审查
Button control switch 4017 digital circuit chip
AVR学习笔记之熔丝位
文字编码 - XML 教程
Utility function---string processing
面试官:如何查看/etc目录下包含abc字符串的文件?
Keycloak 6.0.0 正式发布,身份和访问管理系统
一文梳理NLP主要模型发展脉络
Win11勒索软件防护怎么打开?Win11安全中心勒索软件防护如何设置
橄榄枝大课堂APP正式启动上线
大势所趋之下的nft拍卖,未来艺术品的新赋能
Week 7 Latent Variable Models and Expectation Maximization
Fuse bit of AVR study notes
SLAM 05.视觉里程计-2-特征法
[Niu Ke brush questions-SQL big factory interview questions] NO5. Analysis of a treasure store (e-commerce model)