当前位置:网站首页>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
边栏推荐
猜你喜欢
用过Apifox这个API接口工具后,确实感觉postman有点鸡肋......
漏洞复现 - - - Alibaba Nacos权限认证绕过
橄榄枝大课堂APP正式启动上线
节省50%成本!京东云重磅发布新一代混合CDN产品
Rust 从入门到精通04-变量
MPLS experiment
[UML] Summary of Information System Analysis and Design Knowledge Points
c#之winform(软件开发)
Interviewer: Tell me the difference between NIO and BIO
【牛客刷题-SQL大厂面试真题】NO5.某宝店铺分析(电商模式)
随机推荐
【LeetCode】1403. 非递增顺序的最小子序列
牛客网刷题记录 || 链表
Analysis and application of portrait segmentation technology
BZOJ 1798 维护序列 (多校连萌,对线段树进行加乘混合操作)
第四讲 SVN
Win11勒索软件防护怎么打开?Win11安全中心勒索软件防护如何设置
FreeConfig.h文件
odoo13 note point
华为手机切换屏幕效果_华为p40页面切换效果怎么换
AVR学习笔记之熔丝位
座舱人机交互「暗潮汹涌」,语音「下」,多模态「上」
从理论到实践:MySQL性能优化和高可用架构,一次讲清
SLAM 04.视觉里程计-1-相机模型
大势所趋之下的nft拍卖,未来艺术品的新赋能
router---动态路由匹配
CCF GLCC正式开营|九州云开源专家携丰厚奖金,助力高校开源推广
Niuke.com Brush Question Record || Linked List
ssm学习心得(完结篇
Lecture 4 SVN
七夕当然要学会SQL优化好早点下班去找对象