https://github.com/apache/storm/tree/master/examples/storm-starter
1 down load the source codes
# git clone git://github.com/apache/storm.git
2 Build and install Storm jars locally
# mvn clean package
install -DskipTests=true
3 Running topologies with Maven
#cd examples/storm-starter
# mvn compile exec:java -Dstorm.topology=storm.starter.clj.word_count
4.Build a distribution
#cd storm-dist/binary && mvn package
ingore the errors gpg: signing failed: secret key not available
5.Install distribution
#cp storm-dist/binary/target/apache-storm-0.10.0-SNAPSHOT.tar.gz /path/to/install/dir
#cd /path/to/install/dir
#tar xvf apache-storm-0.10.0-SNAPSHOT.tar.gz
configure ~/.bashrc
export STORM_HOME=/path/to/install/dir/apache-storm-0.10.0-SNAPSHOT
export PATH :=$STORM_HOME/bin
#source ~/.bashrc
6.Test
#cd /path/to/install/dir/apache-storm-0.10.0-SNAPSHOT/examples/storm-starter
#storm jar storm-starter-topologies-0.10.0-SNAPSHOT.jar storm.starter.RollingTopWords
------------------------------------
Set up a custom storm project in Eclipse
When I use maven import storm project to eclipse, there are some errors that couldn't cope with till now.
So, the other way is to build a new java project.
1. build a new java project in eclipse.
2. import storm-start source codes to srm dir from apache-storm-0.9.3/examples/storm-starter/src/jvm
3. import apache-storm-0.9.3/examples/storm-starter/multilang to project as a source fold .
The result dir tree is
4. configure build path
right click project name -> Build Path -> Configure Build Path -> Add variables -> New -> create a variable storm-0.9.3-lib and Add External Jars in apache-storm-0.9.3/lib to this variable.
Note: org.twitter4j commons-collections com.google.guava related jars should also put to storm-0.9.3-lib variable, theos jars could be found in your local maven repsotory. Which version sould be imported, please refer to pom.xml in storm dir and storm-start dir.
5. test
run WordCountTopology in eclipse.
-------------------------------
setup a storm cluster
see: https://storm.apache.org/documentation/Setting-up-a-Storm-cluster.html
Prefences
https://github.com/mbonaci/mbo-storm/wiki/Storm-setup-in-Eclipse-with-Maven,-Git-and-GitHub
http://storm.apache.org/documentation/Creating-a-new-Storm-project.html
http://hantec.iteye.com/blog/1783754
相关推荐
X-Compile-Source-JDK: 1.8 X-Compile-Target-JDK: 1.8 probe是一个tomcat监控工具,部署后可实时查看tomcat的运行情况,包括线程的运行情况、实时查看项目log,很方便,很强大。虽然tomcat本身的manager也能查看...
v8编译缓存 v8-compile-cache附加了一个require钩子,以使用来加快实例化时间。 “代码缓存”是V8进行的解析和编译工作。 中引入了利用V8生成/使用此缓存的。用法添加依赖项: $ npm install --save v8-compile-...
[INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.apache.openejb:javaee-api:jar:5.0-1:provided [INFO] +- javax.faces:jsf-api:jar:1.2_04:provided [INFO] +- javax.servlet:jstl:jar:1.2:provided ...
MQL编译动作 该GitHub Action编译MQL程序。 有关完整文档,请阅读: 。 用法 仅支持此操作。 最新发布 runs-on : windows-latest ... - uses : fx31337/mql-compile-action@v1 ... - uses : fx31337/mql-compile-ac
RxJava binding APIs for Android UI widgets from the platform and support libraries. Download Platform bindings: compile 'com.jakewharton.rxbinding2:rxbinding:2.0.0' 'support-v4' library bindings: ...
ping源码 亲测~完美安全可靠,推荐使用 Arm ping command package can compile and transplant source code
elasticsearch-head-compile-after.tar.gz+node-v8.1.2-linux-x64.ta
Spring Boot Starter把手 Spring Boot Starter对 (无逻辑模板)的支持。 用法 添加handlebars-spring-boot-starter作为依赖项: repositories { mavenCentral() } dependencies { compile ' pl.allegro.tech....
个人应对js-conditional-compile-loader官方依赖包升级导致的bug而出的包
compile "org.banyan.spring.boot:spring-boot-starter-hbase:1.0.0" 集成 在spring-boot项目的application.properties文件中加入spring.data.hbase.quorum,spring.data.hbase.rootDir,spring.data.hbase.nodeParent...
maven-compiler-plugin:3.1:compile (default-compile) maven-resources-plugin:2.6:testResources (default-testResources) maven-compiler-plugin:3.1:testCompile (default-testCompile) maven-surefire-plugin:...
Extensions to RxJava This library allow simple implementation for some tasks in android Usage Add library to project dependencies. repositories { ... compile 'com.github.jacek-marchwicki.rx-java-
打印编译日期 如:Software Compile Date :2023-09-06 14:04:18
compile ( ' org.web3j:web3j-spring-boot-starter:4.0.3 ' ) 现在,Spring可以在任何需要的地方为您注入web3j实例: @Autowired private Web3j web3j; 如果要通过HTTP连接到默认URL 则不需要其他配置。 否则,...
编译后的 elasticsearch-head 源码包,建议配合安装教程《如何安装 elasticsearch-head 插件?》一同使用
电报Spring Boot Starter 这是使用的Spring启动应用程序的入门pom。 启动器在Maven Central可用。 只需将以下依赖项添加到pom中: < dependency>< groupId>...
(compile and link against the regular ncurses library) -I /usr/include/ncursesw -lncursesw (compile and link against the wide-character, UTF-8, library) RPM found in directory: /mirror/archive....
compile-node-sass,编译sass/scss为css。
前端开源库-post-compile-webpack-plugin编译后的Webpack插件,编译完成后运行代码。
webpack-post-compile-plugin 一个webpack post编译插件。 它用于在node_modules中包括后编译模块。 安装 npm i webpack-post-compile-plugin --save-dev 用法 const PostCompilePlugin = require ( 'webpack-post-...