当前位置:网站首页>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

边栏推荐
猜你喜欢

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

"Social Enterprises Conducting Civilian Personnel Training Specifications" group standard on the shelves of Xinhua Bookstore

Analysis and application of portrait segmentation technology

MPLS experiment

centos7安装mysql急速版

LM2596有没有可以替代的?LM2576可以

电子行业MES管理系统有哪些特殊功能

砺夏行动|九州云章津楠:开源不是少数人的运动,大众化才是源泉
![LeetCode 1403 Minimum subsequence in non-increasing order [greedy] HERODING's LeetCode road](/img/fd/c827608b96f678a67c7e920c51d8c5.png)
LeetCode 1403 Minimum subsequence in non-increasing order [greedy] HERODING's LeetCode road

九州云出席领航者线上论坛,共话5G MEC边缘计算现状、挑战和未来
随机推荐
Map常见的遍历方式-keySet 和 entrySet
Programmer Qixi Gift - How to quickly build an exclusive chat room for your girlfriend in 30 minutes
异步编程概览
国家安全机关对涉嫌危害国家安全犯罪嫌疑人杨智渊实施刑事拘传审查
第四讲 SVN
砺夏行动|九州云章津楠:开源不是少数人的运动,大众化才是源泉
浙江大学团队使用基于知识图谱的新方法,从空间分辨转录组数据中推断细胞间通信状况
卷积神经网络 基础
七夕邂逅爱,那人一定在
router---dynamic route matching
博途1200/1500PLC斜坡指令RAMP(带暂停功能)
让Web页面中的编辑器支持黏贴或直接拖拽来添加图片「建议收藏」
LeetCode 1403 Minimum subsequence in non-increasing order [greedy] HERODING's LeetCode road
BZOJ 1798 维护序列 (多校连萌,对线段树进行加乘混合操作)
Redis 复习计划 - Redis主从数据一致性和哨兵机制
PAT甲级:1038 Recover the Smallest Number
odoo13 note point
自监督学习未来是掩码自编码器?KAIST最新《自监督学习掩码自编码器》研究进展
人像分割技术解析与应用
Fuse bit of AVR study notes