2015-10-07 93 views
2

是否有任何示例,教程,博客,書籍,視頻以及任何可以向我展示如何使用Apache SAMOA創建拓撲的任何內容?Apache SAMOA分析拓撲

我對使用StormOA的SAMOA具體感興趣,我想構建一個拓撲,其中拓撲的一部分執行某些聚類(或關聯規則),但我甚至找不到一個示例要做到這一點。任何人都可以解釋如何做到這一點?它甚至有可能嗎?

回答

0

爲了使用STORM在SAMOA上工作,您應該先安裝並配置STORM。
STORM拓撲結構有幾個工人節點,它們是靈活的,動物園管理員,主管。這些工作人員可能駐留在不同的機器上,因此,一開始我建議您使用wirbelsturm,這可以幫助您輕鬆設置拓撲的虛擬機。

我的安裝步驟是;

 
- Vagrant 1.7.2+ 
- Virtualbox 4.3.x 
- Parallel 
- Storm 0.9.3 (release and code-base) 
- Wirbelsturm 

!! Versions were very important for me because I could not succeed with latest ones. 

薩摩亞,你應該編譯和打包STORM,

# Build Storm 
$ cd storm 
$ mvn clean install -DskipTests=true 

# Build the storm-starter example 
$ cd examples/storm-starter 
$ mvn compile exec:java -Dstorm.topology=storm.starter.WordCountTopology 
$ mvn package 

最後,不要忘記更改配置文件;

 
- Vagrantfile 
- wirbelsturm.yaml 
- hosts 

當在薩摩亞上運行;

$ bin/samoa storm target/SAMOA-Storm-0.4.0-incubating-SNAPSHOT.jar "PrequentialEvaluation -d /tmp/dump.csv -i 1000000 -f 100000 -l (org.apache.samoa.learners.classifiers.trees.VerticalHoeffdingTree -p 4) -s (org.apache.samoa.moa.streams.generators.RandomTreeGenerator -c 2 -o 10 -u 10)" 

如果安裝&配置是正確的,你應該看到您的風暴UI佈局:http://localhost:28080/

欲瞭解更多,詳細infromation;

我希望這有助於。