2016-11-30 71 views
-1

我在我的火花streamign applicatiuon使用fastutill ObjectArrayList [對象]代替ArrayBuffer在階(一個mapwithstae函數內)在火花應用程序中使用fastutill ObjectArrayList拋出異常

我使用拉泰什version..using下面SBT

libraryDependencies += "it.unimi.dsi" % "fastutil" % "7.0.13" 

然而,它拋出一個異常

yarn.ApplicationMaster: User class threw exception: java.lang.NoClassDefFoundError: it/unimi/dsi/fastutil/objects/ObjectArrayList 
java.lang.NoClassDefFoundError: it/unimi/dsi/fastutil/objects/ObjectArrayList 
    at MapRRecoverableConsumer$$anonfun$5.apply(MapRRecoverableConsumer.scala:756) 
    at MapRRecoverableConsumer$$anonfun$5.apply(MapRRecoverableConsumer.scala:293) 
    at scala.Option.getOrElse(Option.scala:120) 
    at org.apache.spark.streaming.StreamingContext$.getOrCreate(StreamingContext.scala:864) 
    at MapRRecoverableConsumer$.main(MapRRecoverableConsumer.scala:863) 
    at MapRRecoverableConsumer.main(MapRRecoverableConsumer.scala) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:498) 
    at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:542) 
Caused by: java.lang.ClassNotFoundException: it.unimi.dsi.fastutil.objects.ObjectArrayList 
    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) 

回答

0

Ok..just加入罐參數火花提交,它解決了。 。

相關問題