您的位置:首页 > 教育 > 锐评 > 三亚做网站那家效果好_有哪些比较好的外贸网站_网络推广竞价_扬州百度推广公司

三亚做网站那家效果好_有哪些比较好的外贸网站_网络推广竞价_扬州百度推广公司

2025/4/19 8:25:20 来源:https://blog.csdn.net/weixin_46389691/article/details/143872506  浏览:    关键词:三亚做网站那家效果好_有哪些比较好的外贸网站_网络推广竞价_扬州百度推广公司
三亚做网站那家效果好_有哪些比较好的外贸网站_网络推广竞价_扬州百度推广公司

在操作前,请先确定Maven中没有任何与日志相关的依赖,例如:slf4jlog4j 等,如果存在请先注释或者删除,否则会产生影响。

解决方法

resource 目录下创建文件 —— log4j2.properties,粘贴以下内容即可:

log4j.rootCategory=ERROR, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.target=System.err
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.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 verbose
log4j.logger.org.spark_project.jetty=ERROR
log4j.logger.org.spark_project.jetty.util.component.AbstractLifeCycle=ERROR
log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=ERROR
log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=ERROR
log4j.logger.org.apache.parquet=ERROR
log4j.logger.parquet=ERROR
# SPARK-9183: Settings to avoid annoying messages when looking up nonexistent UDFs in SparkSQL with Hive support
log4j.logger.org.apache.hadoop.hive.metastore.RetryingHMSHandler=FATAL
log4j.logger.org.apache.hadoop.hive.ql.exec.FunctionRegistry=ERROR

在这里插入图片描述

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com