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也能查看...
Spring Boot Starter把手 Spring Boot Starter对 (无逻辑模板)的支持。 用法 添加handlebars-spring-boot-starter作为依赖项: repositories { mavenCentral() } dependencies { compile ' pl.allegro.tech....
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: ...
webpack-post-compile-plugin 一个webpack post编译插件。 它用于在node_modules中包括后编译模块。 安装 npm i webpack-post-compile-plugin --save-dev 用法 const PostCompilePlugin = require ( 'webpack-post-...
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...
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-
在"color-compile-master"这个压缩包中,可能包含以下内容: 1. `color-compile`脚本:这是一个可执行文件或shell脚本,用于拦截`gcc/g++/make`的输出并添加颜色。 2. `README`文件:提供关于如何安装和使用`color-...
const PostCompileWebpackPlugin = require('post-compile-webpack-plugin'); module.exports = { // 其他Webpack配置... plugins: [ // 在这里添加插件 new PostCompileWebpackPlugin({ // 配置你的自定义...
compile ( ' org.web3j:web3j-spring-boot-starter:4.0.3 ' ) 现在,Spring可以在任何需要的地方为您注入web3j实例: @Autowired private Web3j web3j; 如果要通过HTTP连接到默认URL 则不需要其他配置。 否则,...
《Kotlin-Compile-Testing:测试Kotlin与Java编译环节的利器》 在软件开发过程中,确保编译器插件、注解处理器以及代码生成的正确性是至关重要的。Kotlin-Compile-Testing库正是为此目的而生,它提供了一个强大的...
- `org.springframework.security:spring-security-core:jar:2.0.5.RELEASE:compile`:核心模块,包含了Spring Security的核心类和接口。 - `org.springframework:spring-core:jar:2.0.8:compile`:Spring框架的...
标题中的“Samsung Galaxy S: Compile CyanogenMod (Linux)”指的是在Linux操作系统上为Samsung Galaxy S手机编译CyanogenMod的过程。CyanogenMod是一种基于Android开源项目的第三方操作系统,它提供更多的自定义...
电报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....
标题中的“Arm ping command package can compile and transplant source code”指的是一个专门为ARM架构设计的ping命令实现,包含了编译和移植源代码的过程。这个压缩包文件可能是为了帮助开发者在基于ARM处理器的...
"qt-everywhere-opensource-src-5.7.1.tar.gz" 是一个包含Qt开源源码的压缩包,适用于版本5.7.1。Qt是一个强大的跨平台应用程序开发框架,支持Windows、Linux、macOS、Android以及iOS等多个操作系统。这个压缩包主要...
conditional-compile-loader conditional-compile-loader 根据设定的参数对 vue、js、jsx 和 css(less, sass 等) 代码进行条件编译。 安装 先安装 conditional-compile-loader npm install -D conditional-compile-...