2
時
我試圖實現http://ampcamp.berkeley.edu/big-data-mini-course/realtime-processing-with-spark-streaming.html或http://www.pwendell.com/2013/09/28/declarative-streams.html(儘管這種使用星火過時的版本),但我一直與結束了:螺紋星火流Twitter的例子:NoClassDefFoundError的使用TwitterUtils.createStream
異常「主「java.lang.NoClassDefFoundError:組織/阿帕奇/火花/流/ DSTREAM/NetworkInputDStream
下面是導致該問題的一些示例代碼:
val ssc = new StreamingContext("local[12]", "Twitter Downloader", Seconds(30))
//causes the error
val tweets = TwitterUtils.createStream(ssc, None)
而且,我使用Scala和Eclipse的
謝謝! (我可以印更多的錯誤,或者有幫助輸出)