zookeeper集群已经搭建成功,但是运行jstorm打的时候出现错误
查看nohup.out
Invalid initial heap size: -Xms4g
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Redirect output to /dev/null
然后我修改了配置文件,如下
########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
- "192.168.2.198"
- "192.168.2.121"
- "192.168.2.120"
storm.zookeeper.root: "/jstorm"
# cluster.name: "default"
#nimbus.host/nimbus.host.start.supervisor is being used by $JSTORM_HOME/bin/start.sh
#it only support IP, please don't set hostname
# For example
# nimbus.host: "10.132.168.10, 10.132.168.45"
nimbus.host: "192.168.2.198"
#nimbus.host.start.supervisor: false
# %JSTORM_HOME% is the jstorm home directory
storm.local.dir: "%JSTORM_HOME%/data"
# please set absolute path, default path is JSTORM_HOME/logs
jstorm.log.dir: "%JSTORM_HOME%/logs"
# java.library.path: "/usr/local/lib:/opt/local/lib:/usr/lib"
supervisor.slots.ports:
- 6800
- 6801
- 6802
- 6803
worker.memory.size: 1247483648
把worker.memory.size改为1247483648
查看nohup.out
Exception in thread "main" java.lang.ExceptionInInitializerError at backtype.storm.command.config_value.main(config_value.java:40)
Caused by: expected '<document start>', but found BlockMappingStart in 'reader', line 70, column 1:
worker.memory.size: 1247483648 ^
at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:225)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) at org.yaml.snakeyaml.Yaml.load(Yaml.java:424)
at com.alibaba.jstorm.utils.LoadConf.findAndReadYaml(LoadConf.java:53) at backtype.storm.utils.Utils.readStormConfig(Utils.java:359)
at backtype.storm.utils.Utils.<clinit>(Utils.java:65) ... 1 more
Exception in thread "main" java.lang.ExceptionInInitializerError at backtype.storm.command.config_value.main(config_value.java:40)
Caused by: expected '<document start>', but found BlockMappingStart in 'reader', line 70, column 1:
worker.memory.size: 1247483648 ^
at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:225)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) at org.yaml.snakeyaml.Yaml.load(Yaml.java:424)
at com.alibaba.jstorm.utils.LoadConf.findAndReadYaml(LoadConf.java:53) at backtype.storm.utils.Utils.readStormConfig(Utils.java:359)
at backtype.storm.utils.Utils.<clinit>(Utils.java:65) ... 1 more
Exception in thread "main" java.lang.ExceptionInInitializerError at backtype.storm.command.config_value.main(config_value.java:40)
Caused by: expected '<document start>', but found BlockMappingStart in 'reader', line 70, column 1:
worker.memory.size: 1247483648 ^
at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:225)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) at org.yaml.snakeyaml.Yaml.load(Yaml.java:424)
at com.alibaba.jstorm.utils.LoadConf.findAndReadYaml(LoadConf.java:53) at backtype.storm.utils.Utils.readStormConfig(Utils.java:359)
at backtype.storm.utils.Utils.<clinit>(Utils.java:65) ... 1 more
Failed to get config nimbus.classpathNone
00:46:42.920 [main] INFO com.alibaba.jstorm.utils.LoadConf - Using defaults.yaml from resources00:46:42.979 [main] INFO com.alibaba.jstorm.utils.LoadConf - Using storm.yaml from resources
Failed to get config nimbus.childopts
None00:46:43.086 [main] INFO com.alibaba.jstorm.utils.LoadConf - Using defaults.yaml from resources
00:46:43.145 [main] INFO com.alibaba.jstorm.utils.LoadConf - Using storm.yaml from resources
Failed to get config jstorm.log.dirNone
00:46:43.252 [main] INFO com.alibaba.jstorm.utils.LoadConf - Using defaults.yaml from resources00:46:43.312 [main] INFO com.alibaba.jstorm.utils.LoadConf - Using storm.yaml from resources
coercing to Unicode: need string or buffer, NoneType found
Syntax: [jstorm nimbus]
Launches the nimbus daemon. This command should be run under supervision with a tool like daemontools or monit.
See Setting up a JStorm cluster for more information.
(https://github.com/alibaba/jstorm/wiki/JStorm-Chinese-Documentation)
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。