Apache Spark logging within Scala

后端 未结 7 2334
野趣味
野趣味 2020-12-12 19:18

I am looking for a solution to be able to log additional data when executing code on Apache Spark Nodes that could help investigate later some issues that might appear durin

7条回答
  •  北海茫月
    2020-12-12 19:24

    Use Log4j 2.x. The core logger has been made serializable. Problem solved.

    Jira discussion: https://issues.apache.org/jira/browse/LOG4J2-801

    "org.apache.logging.log4j" % "log4j-api" % "2.x.x"
    
    "org.apache.logging.log4j" % "log4j-core" % "2.x.x"
    
    "org.apache.logging.log4j" %% "log4j-api-scala" % "2.x.x"
    

提交回复
热议问题