storm启动过程中出现'but found BlockMappingStart'和'but found Scalar'以及启动卡死问题个人解决方案

Alex / 3-31 15:04 / Strom / Tag: Storm

启动storm过程中连续出现几个问题:

1.

Exception in thread "main" expected '<document start>', but found BlockMappingStart
 in 'reader', line 23, column 2:

2.

Exception in thread "main" expected '<document start>', but found Scalar
 in 'reader', line 22, column 2:
     nimbus.host:"lishiyu03"
     ^

 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 backtype.storm.utils.Utils.findAndReadConfigFile(Utils.java:148)
 at backtype.storm.utils.Utils.readStormConfig(Utils.java:195)
 at backtype.storm.config$read_storm_config.invoke(config.clj:121)
 at backtype.storm.command.config_value$_main.invoke(config_value.clj:22)
 at clojure.lang.AFn.applyToHelper(AFn.java:161)
 at clojure.lang.AFn.applyTo(AFn.java:151)
 at backtype.storm.command.config_value.main(Unknown Source)

2.Storm启动nimbus 时卡死问题

 

 

解决方案,在storm.yaml配置文件中(类似下面的文件)

########### These MUST be filled in for a storm configuration
空格storm.zookeeper.servers:
     -空格"lishiyu03"
     -空格"lishiyu04"
     -空格"lishiyu05"
空格nimbus.host: 空格"lishiyu03"

其他事项按照文档编写就可了,最后出现的卡死问题也是空格引起的,剩下的我粗心少了一个":"号也引起了不必要的错误

启动 nimbus 没有卡死之后启动 supervisor 又卡死了,后来启动俩个进程的时候都是用下边的语句,让他后台运行

nohup ./storm nimbus 1>/dev/null 2>&1 &

 

nohup ./storm supervisor 1>/dev/null 2>&1 & 

 


发表留言:

kafka入门与kafka集群的安装使用 Hive中关于Mysql的安装与配置
返回顶部
Themes by lishiyu.cn