Apache Spark - UDF doesn't seem to work with spark-submit
问题 I am unable to get UDF to work with spark-submit. I don't have any problem while using spark-shell. Please see below, the Error message, sample code, build.sbt and the command to run the program Will appreciate all the help! - Regards, Venki ERROR message: (line 20 is where the UDF is defined) Exception in thread "main" java.lang.NoSuchMethodError: scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;) Lscala/reflect/api/JavaUniverse$JavaMirror; at TryUDFApp$.main(TryUDFApp