, sbt maven, . sbt, , .
1. Apache Spark log4j 1.2.xx
, , . !
-, libs spark:
sbt ( sbt-assembly) :
lazy val spark16 = Seq("spark-core", "spark-sql", "spark-hive")
.map("org.apache.spark" %% _ % "1.6.1")
.map(_.excludeAll(
ExclusionRule(name = "log4j"),
ExclusionRule(name = "slf4j-log4j12")
))
2. log4j slf4j
: https://www.slf4j.org/legacy.html
, : log4j-over-slf4j
log4j-over-slf4j log4j, org.apache.log4j.Category, org.apache.log4j.Logger, org.apache.log4j.Priority, org.apache.log4j.Level, org.apache.log4j.MDC org.apache.log4j.BasicConfigurator. SLF4J.
, slf4j, .
"org.slf4j" % "log4j-over-slf4j" % "1.7.25"
3.
( ) logback, :
"ch.qos.logback" % "logback-classic" % "1.2.3"
logback.xml , , src/main/resources !
logback spark-submit, : fooobar.com/questions/1669207/...