平台:centos-6.3-i386

   jdk-7u51

storm 0.9.1

   python 2.6.6

     hadoop 1.2.1

  启动storm的时候,遇到这个问题,百度之后,看到大家的解决方案是在 nimbus.host: "master"前加上空格,但是,我的已经加上空格。还是出错。

      后来,google到外国网址。然后下载了纯净版的storm.yaml,替换之后,重新配置,就搞定了。

      外国网址:https://groups.google.com/forum/#!topic/storm-user/o7Xx6Oa_XKI

      以及storm.yaml文件:链接: http://pan.baidu.com/s/1kVDEa5T 密码: hfyc

    重要说明:文件最后一行,少打了一个空格。

下边是百度到上别人的方法:

 

 
 1 # Licensed to the Apache Software Foundation (ASF) under one
2 # or more contributor license agreements. See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership. The ASF licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License. You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 ########### These MUST be filled in for a storm configuration
18 # storm.zookeeper.servers:
19 - "master"
20 - "slave1"
21 - "slave2"
22 #
23 nimbus.host: "master"
24 storm.local.dir: "/home/hadoop/apache-storm-0.9.1-incubating/data"
25 supervisor.slots.ports:
26 - 6700
27 - 6701
28 - 6702
29 - 6703
30 #
31 #
32 # ##### These may optionally be filled in:
33 #
34 ## List of custom serializations
35 # topology.kryo.register:
36 # - org.mycompany.MyType
37 # - org.mycompany.MyType2: org.mycompany.MyType2Serializer
38 #
39 ## List of custom kryo decorators
40 # topology.kryo.decorators:
41 # - org.mycompany.MyDecorator
42 #
43 ## Locations of the drpc servers
44 # drpc.servers:
45 # - "server1"
46 # - "server2"
47
48 ## Metrics Consumers
49 # topology.metrics.consumer.register:
50 # - class: "backtype.storm.metrics.LoggingMetricsConsumer"
51 # parallelism.hint: 1
52 # - class: "org.mycompany.MyMetricsConsumer"
53 # parallelism.hint: 1
54 # argument:
55 # - endpoint: "metrics-collector.mycompany.org"

 
 

启动 storm nimbus &

 
 1  Exception in thread "main" expected '<document start>', but found BlockMappingStart
2 in 'reader', line 23, column 2:
3 nimbus.host: "master"
4 ^
5
6 at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:225)
7 at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
8 at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
9 at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)
10 at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
11 at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481)
12 at org.yaml.snakeyaml.Yaml.load(Yaml.java:424)
13 at backtype.storm.utils.Utils.findAndReadConfigFile(Utils.java:138)
14 at backtype.storm.utils.Utils.readStormConfig(Utils.java:178)
15 at backtype.storm.config$read_storm_config.invoke(config.clj:116)
16 at backtype.storm.command.config_value$_main.invoke(config_value.clj:22)
17 at clojure.lang.AFn.applyToHelper(AFn.java:161)
18 at clojure.lang.AFn.applyTo(AFn.java:151)
19 at backtype.storm.command.config_value.main(Unknown Source)
20 Exception in thread "main" expected '<document start>', but found BlockMappingStart
21 in 'reader', line 23, column 2:
22 nimbus.host: "master"
23 ^
24
25 at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:225)
26 at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
27 at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
28 at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)
29 at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
30 at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481)
31 at org.yaml.snakeyaml.Yaml.load(Yaml.java:424)
32 at backtype.storm.utils.Utils.findAndReadConfigFile(Utils.java:138)
33 at backtype.storm.utils.Utils.readStormConfig(Utils.java:178)
34 at backtype.storm.config$read_storm_config.invoke(config.clj:116)
35 at backtype.storm.command.config_value$_main.invoke(config_value.clj:22)
36 at clojure.lang.AFn.applyToHelper(AFn.java:161)
37 at clojure.lang.AFn.applyTo(AFn.java:151)
38 at backtype.storm.command.config_value.main(Unknown Source)
39 Running: java -server -Dstorm.options= -Dstorm.home=/home/hadoop/apache-storm-0.9.1-incubating -Djava.library.path= -Dstorm.conf.file= -cp /home/hadoop/apache-storm-0.9.1-incubating/lib/ring-core-1.1.5.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/tools.cli-0.2.2.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/compojure-1.1.3.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/jgrapht-core-0.9.0.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/json-simple-1.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/commons-io-1.4.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/objenesis-1.2.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/servlet-api-2.5.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/ring-servlet-0.3.11.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/httpclient-4.1.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/clout-1.0.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/disruptor-2.10.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/commons-fileupload-1.2.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/ring-jetty-adapter-0.3.11.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/curator-client-1.0.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/netty-3.6.3.Final.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/meat-locker-0.3.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/clj-time-0.4.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/commons-codec-1.4.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/slf4j-api-1.6.5.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/clojure-1.4.0.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/joda-time-2.0.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/commons-lang-2.5.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/kryo-2.17.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/commons-logging-1.1.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/carbonite-1.3.2.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/tools.macro-0.1.0.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/clj-stacktrace-0.2.4.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/log4j-over-slf4j-1.6.6.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/commons-exec-1.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/storm-core-0.9.1-incubating.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/jetty-util-6.1.26.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/guava-13.0.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/core.incubator-0.1.0.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/snakeyaml-1.11.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/ring-devel-0.3.11.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/minlog-1.2.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/logback-core-1.0.6.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/servlet-api-2.5-20081211.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/reflectasm-1.07-shaded.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/logback-classic-1.0.6.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/math.numeric-tower-0.0.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/hiccup-0.3.6.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/httpcore-4.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/asm-4.0.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/zookeeper-3.3.3.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/curator-framework-1.0.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/junit-3.8.1.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/jline-2.11.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/tools.logging-0.2.3.jar:/home/hadoop/apache-storm-0.9.1-incubating/lib/jetty-6.1.26.jar:/home/hadoop/apache-storm-0.9.1-incubating/conf -Dlogfile.name=nimbus.log -Dlogback.configurationFile=/home/hadoop/apache-storm-0.9.1-incubating/logback/cluster.xml backtype.storm.daemon.nimbus
 

查看报警信息标识是在nimbus的n上,经试验原来是这几个配置名称前需要加空格。即:

空格nimbus.host: "192.168.1.101"
空格storm.zookeeper.port: 2181
空格storm.local.dir: "home/hadoop/storm-0.9.1/data"
空格supervisor.slots.ports:
 
大家配置storm.yaml时一定要注意了。少一个空格竟然就启动不了,真是不可思议。

Exception in thread "main" expected '<document start>', but found BlockMappingStart in 'reader', line 23, column 2: nimbus.host: "master"的更多相关文章

  1. 【异常】Maxwell异常 Exception in thread "main" net.sf.jsqlparser.parser.TokenMgrError: Lexical error at line 1, column 596. Encountered: <EOF> after : ""

    1 详细异常 Exception in thread "main" net.sf.jsqlparser.parser.TokenMgrError: Lexical error at ...

  2. 异常-Exception in thread "main" net.sf.jsqlparser.parser.TokenMgrError: Lexical error at line 1, column 596. Encountered: <EOF> after :

    1 详细异常 Exception in thread "main" net.sf.jsqlparser.parser.TokenMgrError: Lexical error at ...

  3. Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ElasticsearchParseException[malformed, expected end of settings but encountered additional conte

    D:\elasticsearch\elasticsearch-2.4.0\bin>elasticsearchException in thread "main" Settin ...

  4. Exception in thread "main" java.lang.IllegalArgumentException:解决方法

    使用fileSystem的delete方法无法删除文件或目录 Exception in thread "main" java.lang.IllegalArgumentExcepti ...

  5. yml配置文件读取出错 Exception in thread "main" while scanning for the next token found character '\t(TAB)'

    这几天在学习springboot的微服务项目,在配置文件方面也想尝试下新的yml配置,就想把原来项目properties写的文件转换成yml试一下(老项目是之前检出在了eclipse里面),结果写好了 ...

  6. Exception in thread "main" java.net.SocketTimeoutException: connect timed ou错误处理

    今天做了一个Jsoup解析网站的项目,使用Jsoup.connect(url).get()连接某网站时偶尔会出现java.net.SocketTimeoutException:Read timed o ...

  7. 启动elasticsearch的时候报出Exception in thread "main" SettingsException[Failed to load settings from /usr/local/elasticsearch/config/elasticsearch.yml]; nested: MarkedYAMLException[while scanning a simple ke

    故障现象: [elasticsearch@tiantianml- ~]$ /usr/local/elasticsearch/bin/elasticsearch Exception in thread ...

  8. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

    学习架构探险,从零开始写Java Web框架时,在学习到springAOP时遇到一个异常: "C:\Program Files\Java\jdk1.7.0_40\bin\java" ...

  9. Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V

    在学习CGlib动态代理时,遇到如下错误: Exception in thread "main" java.lang.NoSuchMethodError: org.objectwe ...

随机推荐

  1. 用python帮朋友刷帖

    0x0前言: 答应了一个朋友帮他刷贴,自己用python写了一个脚本刷. 虽然行为不好..但是缺钱用... 0x01准备: splinter模块: chrome浏览器驱动 0x02开始: 1.进入百度 ...

  2. SQLiteOpenHelper与SQLiteDatabase的使用

    1. 数据类型 与其它数据库不同,SQLite的数据类型很简单,只有NULL(空类型).INTEGER(整型).REAL(浮点型).TEXT(字符串型).BLOB(二进制型). SQLite为动态数据 ...

  3. 爬虫工具fiddle在firefox浏览器中的使用

    1.fiddle工作原理 浏览器与服务器之间通过建立TCP连接以HTTP协议进行通信,默认通过自己发送HTTP(或HTTPS)请求到服务器. 使用Fiddler之后,浏览器像目标服务器发送的请求都会经 ...

  4. centos svn 服务器间的数据迁移

    svnadmin dump erp > ~/erp.svn   当前目录下的erp 导出到根目录下名为erp.svn tar -zcvf backupSvn.tar.gz backupSvn   ...

  5. [BZOJ1269] [AHOI2006] 文本编辑器editor (splay)

    Description 这些日子,可可不和卡卡一起玩了,原来可可正废寝忘食的想做一个简单而高效的文本编辑器.你能帮助他吗?为了明确任务目标,可可对“文本编辑器”做了一个抽象的定义:  文本:由0个或多 ...

  6. Hive 自定义函数

    hive 支持自定义UDF,UDTF,UDAF函数 以自定义UDF为例: 使用一个名为evaluate的方法 package com.hive.custom; import org.apache.ha ...

  7. 未来已来,腾讯AI计算网络

    欢迎大家前往腾讯云+社区,获取更多腾讯海量技术实践干货哦~ 作者:由鹅厂网事发表在云+社区 "鹅厂网事"由深圳市腾讯计算机系统有限公司技术工程事业群网络平台部运营,我们希望与业界各位志同道合的伙伴交流 ...

  8. mybatis的Mapper文件配置

    一.resultMap resultMap 元素是 MyBatis 中最重要最强大的元素. 该配置节点下如下子节点配置 id – 一个 ID 结果;标记结果作为 ID 可以帮助提高整体效能 const ...

  9. python 常用方法

    在python的类中,除了常规的一些自定义函数调用之外还有一些内置函数或方法,大多数情况下不会用到,但是为了更好的学习到python类的原理也需要对其有一定的了解,下面我们一起来看一下都具体包含了那些 ...

  10. python写一个信息收集四大件的脚本

    0x0前言: 带来一首小歌: 之前看了小迪老师讲的课,仔细做了些笔记 然后打算将其写成一个脚本. 0x01准备: requests模块 socket模块 optparser模块 time模块 0x02 ...