开发者社区> 问答> 正文

storm.yaml配置问题

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)









展开
收起
paine1690 2016-05-23 16:53:51 8756 0
2 条回答
写回答
取消 提交回答
  • Restorm.yaml配置问题
    我也遇到了相同问题,请问楼主怎么解决的
    2016-06-22 10:58:37
    赞同 展开评论 打赏
  • 配置文件格式有问题的,看错误提示
    2016-05-23 19:04:16
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Deploy Apache Flink Natively on YARN_Kubernetes 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载