Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Level
at org.apache.spark.internal.Logging$class.initializeLogging(Logging.scala:111)
at org.apache.spark.internal.Logging$class.initializeLogIfNecessary(Logging.scala:102)
at org.apache.spark.SparkContext.initializeLogIfNecessary(SparkContext.scala:73)
at org.apache.spark.internal.Logging$class.log(Logging.scala:46)
at org.apache.spark.SparkContext.log(SparkContext.scala:73)
at org.apache.spark.internal.Logging$class.logInfo(Logging.scala:54)
at org.apache.spark.SparkContext.logInfo(SparkContext.scala:73)
at org.apache.spark.SparkContext.(SparkContext.scala:184)
at cn.edu360.day2.MongoSparkRDD$.main(MongoSparkRDD.scala:23)
at cn.edu360.day2.MongoSparkRDD.main(MongoSparkRDD.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more
查了下说log4j的包跟sfl4j冲突,删除了一个还是这样的错误,换台电脑运行就可以,是怎么回事呢?求解决