SPARK3 2.11 不再支持 scala从2.11升级到2.12,替换掉2.11包和scala 以及json4s等包
ls ./jars|egrep “(^scala|^hadoop|^json4s)”|xargs rm -f
ls …/jars|egrep “(^scala|^hadoop|^json4s)”|xargs -i cp {} .
ls …/jars|grep 2.11
19/07/21 18:33:33 INFO yarn.Client: Deleted staging directory hdfs://172.16.119.188:9000/user/spark/.sparkStaging/application_1563641923608_0003
19/07/21 18:33:33 ERROR yarn.Client: Application diagnostics message: User class threw exception: java.lang.NoSuchMethodError: scala.Predef$.refArrayOps([Ljava/lang/Object;)Lscala/collection/mutable/ArrayOps;
at com.fasterxml.jackson.module.scala.introspect.BeanIntrospector$$anonfun$2.apply(BeanIntrospector.scala:170)
at com.fasterxml.jackson.module.scala.introspect.BeanIntrospector$$anonfun$2.apply(BeanIntrospector.scala:169)
at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
at scala.collection.immutable.List.foreach(List.scala:392)
at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
at scala.collection.immutable.List.flatMap(List.scala:355)
at com.fasterxml.jackson.module.scala.introspect.BeanIntrospector$.apply(BeanIntrospector.scala:169)
at com.fasterxml.jackson.module.scala.introspect.ScalaAnnotationIntrospector$._descriptorFor(ScalaAnnotationIntrospectorModule.scala:22)
at com.fasterxml.jackson.module.scala.introspect.ScalaAnnotationIntrospector$.fieldName(ScalaAnnotationIntrospectorModule.scala:30)
at com.fasterxml.jackson.module.scala.introspect.ScalaAnn