我正在尝试按如下方式创建示例DataFrame。
case class NumberClass(number: Int)
val numberRDD = sc.parallelize(Array(1,2,3,4,5))
val numberDF = numberRDD.map{ number =>
NumberClass(number)
}.toDF
但是,上面的代码会返回如下所示的错误
java.lang.ClassNotFoundException: java.lang.NoClassDefFoundError:
Could not initialize class org.apache.hadoop.security.Credentials when creating Hive client using classpath:file:/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre/lib/resurces.jar,
我阅读了错误消息,但不确定它的含义。 这个错误来自哪里?