storm搭建普遍注意问题
1.第一个错误提示:
错误: 找不到或无法加载主类 Files\Java\jdk1.8.0_73\bin;D:\Program
这个其实不能看出问题,就是JDK的安装路径中包含空格导致,所以加上引号就可以了,修改文件storm-config.cmd:
set STORM_OPTS=%STORM_OPTS% -Dstorm.home=%STORM_HOME% -Djava.library.path="%JAVA_LIBRARY_PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\lib;%JAVA_HOME%\jre\bin;%JAVA_HOME%\jre\lib"
注意Djava.library.path这后面加上引号。
2.在每个配置项前面必须留有空格,否则会无法识别。
如storm的conf/storm.yaml文件如下:
########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
- "10.1.110.21"
- "10.1.110.22"
- "10.1.110.24"
#
# nimbus.host: "nimbus"
#
#
# ##### These may optionally be filled in:
#
## List of custom serializations
# topology.kryo.register:
# - org.mycompany.MyType
# - org.mycompany.MyType2: org.mycompany.MyType2Serializer
#
## List of custom kryo decorators
# topology.kryo.decorators:
# - org.mycompany.MyDecorator
#
## Locations of the drpc servers
# drpc.servers:
# - "server1"
# - "server2"
storm.local.dir: "/var/tmp/storm/workdir"
页:
[1]