apache storm yaml blockmappingstart 消息
apache storm yaml blockmappingstart message
我正在尝试设置风暴集群,并且我遵循了 youtube 上的教程。一切正常,但现在我正在尝试 运行 终端上的风暴雨云,我收到以下消息:
....
Caused by: expected '', but found BlockMappingStart in 'reader', line 23, column 2:
storm.zookeeper.port: 2181
^
....
storm.yaml
文件如下:
########### These MUST be filled in for a storm configuration
# storm.zookeeper.servers:
- "x.x.x.5"
# - "server1"
storm.zookeeper.port: 2181
nimbus.host: x.x.x.5
nimbus.thrift.port: 6627
ui.port: 8772
storm.local.dir: "/usr/local/apacche-storm-0.10.0/data"
java.library.path: "/usr/lib/jvm/java-7-openjdk-amd64/"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
有什么想法吗?
问题就在开头:
########### These MUST be filled in for a storm configuration
# storm.zookeeper.servers:
- "x.x.x.5"
# - "server1"
storm.zookeeper.port: 2181
忽略注释行,您有一个缩进两个空格的序列 (- "x.x.x.5"
),后跟一个根本不缩进的映射 (storm.zookeeper.port: 2181
)。那是无效的。如果取消第二行的注释,还需要取消第二行的注释(storm.zookeeper.servers:
):
########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
- "x.x.x.5"
- "server1"
storm.zookeeper.port: 2181
我正在尝试设置风暴集群,并且我遵循了 youtube 上的教程。一切正常,但现在我正在尝试 运行 终端上的风暴雨云,我收到以下消息:
....
Caused by: expected '', but found BlockMappingStart in 'reader', line 23, column 2: storm.zookeeper.port: 2181 ^
....
storm.yaml
文件如下:
########### These MUST be filled in for a storm configuration
# storm.zookeeper.servers:
- "x.x.x.5"
# - "server1"
storm.zookeeper.port: 2181
nimbus.host: x.x.x.5
nimbus.thrift.port: 6627
ui.port: 8772
storm.local.dir: "/usr/local/apacche-storm-0.10.0/data"
java.library.path: "/usr/lib/jvm/java-7-openjdk-amd64/"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
有什么想法吗?
问题就在开头:
########### These MUST be filled in for a storm configuration
# storm.zookeeper.servers:
- "x.x.x.5"
# - "server1"
storm.zookeeper.port: 2181
忽略注释行,您有一个缩进两个空格的序列 (- "x.x.x.5"
),后跟一个根本不缩进的映射 (storm.zookeeper.port: 2181
)。那是无效的。如果取消第二行的注释,还需要取消第二行的注释(storm.zookeeper.servers:
):
########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
- "x.x.x.5"
- "server1"
storm.zookeeper.port: 2181