Exception in thread "main" java.lang.NoSuchMethodError: scala.runtime.VolatileByteRef.create(B)Lscala/runtime/VolatileByteRef;
spark项目中,编译没错,运行时报错Exception in thread "main" java.lang.NoSuchMethodError: scala.runtime.VolatileByteRef.create(B)Lscala/runtime/VolatileByteRef;
经排查,引用的org.apache.kafka下的kafka_2.11与设定的scala版本(2.10)有冲突,所以调整为kafka_2.10就解决了
-------------------------------------------------- 技术很菜却一直想做大牛!