Storm 问题记录

四、在storm上发布应用
1、主类传递参数形式
c:\project\storm\conf.yaml是传递到主类main方法的参数值
storm jar  c:\project\storm\testjstorm-0.1-jar-with-dependencies.jar com.TestParseTopology c:\project\storm\conf.yaml -c nimbus.host=localhost



三、删除Strom上Topology
storm kill {stormname}


二、Storm、JStrom在windows的集成
1、下载 apache-storm-0.10.0.zip,直接解压使用
2、下载jstorm-2.0.4-SNAPSHOT.tar.gz,提取其中jstorm-core-2.0.4-SNAPSHOT.jar里的com目录里全部类,把这些类放到 $STORM_HOME$/lib/ storm-core-0.10.0.jar中。
3、将如下的jar包放入 $STORM_HOME$/lib/
commons-cli-1.2.jar
commons-codec-1.6.jar
commons-exec-1.1.jar
commons-io-2.4.jar
commons-lang-2.5.jar
4、此时,可以运行 基于JStrom编写的storm程序。


一、windows安装storm
注意:
在windows下运行storm nimbus命令时,在%STORM_HOME%\bin\storm-config.cmd里修改STORM_LOGBACK_CONFIGURATION_FILE配置参数。
修改前的内容:
if not defined STORM_LOGBACK_CONFIGURATION_FILE (
  set STORM_LOGBACK_CONFIGURATION_FILE=%STORM_HOME%\log4j2\cluster.xml
)

修改后的内容:
if not defined STORM_LOGBACK_CONFIGURATION_FILE (
  set STORM_LOGBACK_CONFIGURATION_FILE=file://%STORM_HOME%\log4j2\cluster.xml
)


参考:
http://blog.csdn.net/cauchy8389/article/details/39586763

猜你喜欢

转载自7wolfs.iteye.com/blog/2277165
今日推荐