这个其实不能看出问题,就是JDK的安装路径中包含空格导致,所以加上引号就可以了,修改文件storm-config.cmd:
[mw_shl_code=bash,true] 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"
[/mw_shl_code]
注意Djava.library.path这后面加上引号。
2.在每个配置项前面必须留有空格,否则会无法识别。
如storm的conf/storm.yaml文件如下:
[mw_shl_code=xml,true]########### 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" [/mw_shl_code]