Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

different version of slf4j-log4j #257

Closed
rui-mo opened this issue Apr 16, 2021 · 3 comments · Fixed by #258, #291 or #310
Closed

different version of slf4j-log4j #257

rui-mo opened this issue Apr 16, 2021 · 3 comments · Fixed by #258, #291 or #310
Labels
bug Something isn't working

Comments

@rui-mo
Copy link
Collaborator

rui-mo commented Apr 16, 2021

We noticed below error, caused by different versions of slf4j-log4j in hadoop-3.2.0 and spark.

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/mnt/s4/usercache/root/filecache/70/__spark_libs__5607923394306854618.zip/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/rui/hadoop/hadoop-dist/target/hadoop-3.2.0/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class

@rui-mo
Copy link
Collaborator Author

rui-mo commented Apr 29, 2021

We found similar issue again:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/rui/native-sql-engine/native-sql-engine/core/target/spark-columnar-core-1.1.0-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/rui/native-sql-engine/arrow-data-source/standard/target/spark-arrow-datasource-standard-1.1.0-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]

@zhouyuan
Copy link
Collaborator

should be due to the recent merged s3 support : #270
@zhztheplayer please take a look on #291

@zhouyuan zhouyuan reopened this Apr 30, 2021
@rui-mo
Copy link
Collaborator Author

rui-mo commented May 12, 2021

We found below error:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/rui/native-sql-engine/native-sql-engine/core/target/spark-columnar-core-1.1.0-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/rui/native-sql-engine/arrow-data-source/standard/target/spark-arrow-datasource-standard-1.1.0-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/rui/spark/jars/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
21/05/12 10:10:35,836 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
21/05/12 10:10:41,816 WARN org.apache.spark.deploy.yarn.Client: Neither spark.yarn.jars nor spark.yarn.archive is set, falling back to uploading libraries under SPARK_HOME.
com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.10.0 requires Jackson Databind version >= 2.10.0 and < 2.11.0
at com.fasterxml.jackson.module.scala.JacksonModule.setupModule(JacksonModule.scala:61)
at com.fasterxml.jackson.module.scala.JacksonModule.setupModule$(JacksonModule.scala:46)
at com.fasterxml.jackson.module.scala.DefaultScalaModule.setupModule(DefaultScalaModule.scala:17)
at com.fasterxml.jackson.databind.ObjectMapper.registerModule(ObjectMapper.java:751)
at org.apache.spark.util.JsonProtocol$.(JsonProtocol.scala:61)
at org.apache.spark.util.JsonProtocol$.(JsonProtocol.scala)
at org.apache.spark.scheduler.EventLoggingListener.initEventLog(EventLoggingListener.scala:89)
at org.apache.spark.scheduler.EventLoggingListener.start(EventLoggingListener.scala:84)
at org.apache.spark.SparkContext.(SparkContext.scala:604)
at org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2678)
at org.apache.spark.sql.SparkSession$Builder.$anonfun$getOrCreate$2(SparkSession.scala:942)
at scala.Option.getOrElse(Option.scala:189)
at org.apache.spark.sql.SparkSession$Builder.getOrCreate(SparkSession.scala:936)
at org.apache.spark.repl.Main$.createSparkSession(Main.scala:106)
... 55 elided

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
2 participants