2014-05-10 29 views
0

的PrintSampleStream例如風暴啓動項目注意到以下幾點:風暴啓動的PrintSampleStream例如指令

// to use this example, uncomment the twitter4j dependency information in the project.clj, 
// uncomment storm.starter.spout.TwitterSampleSpout, and uncomment this class 

的取消註釋說明很簡單,但如果是project.clj?

回答

2

文件「project.clj」位於項目的根目錄中。請參閱github https://github.com/nathanmarz/storm-starter並取消註釋https://github.com/nathanmarz/storm-starter/blob/master/project.clj中的twitter4j依賴項。

+0

我從新的位置,https://github.com/apache/incubator-storm/tree/master/examples/storm-starter,這似乎並沒有該文件。當我執行,mvn安裝,我得到錯誤:包twitter4j.conf不存在 – scagnetti

+1

在新的位置,如果你檢查pom.xml他們使用0.9.2-SNAPSHOT(不是最終版本)和最後一個版本是apache-0.9.1那還不包括Storm-starter,所以我會使用nathan github的storm-starter,直到他們有一個新版本的apache-0.9.2 stable。你不會有這個問題。 – gasparms