Yaml 错误 - 此处不允许映射值
Yaml error - mapping values are not allowed here
我正在尝试使用 yaml 文件,但每当我尝试从中读取时,我都会得到:
Exception in thread "main" mapping values are not allowed here in "<reader>", line 7, column 19
yaml 文件:
topology:
- name: teststormsignals
jar: storm-signals-0.2.1-SNAPSHOT.jar
topologyclass: backtype.storm.contrib.signals.test.SignalTopology
packaging: mvn package
repository: https://github.com/ptgoetz/storm-signals.git
我运行它通过 yaml 解析器,但它说它是有效的。
试试这个(双引号):
repository: "https://github.com/ptgoetz/storm-signals.git"
我正在尝试使用 yaml 文件,但每当我尝试从中读取时,我都会得到:
Exception in thread "main" mapping values are not allowed here in "<reader>", line 7, column 19
yaml 文件:
topology:
- name: teststormsignals
jar: storm-signals-0.2.1-SNAPSHOT.jar
topologyclass: backtype.storm.contrib.signals.test.SignalTopology
packaging: mvn package
repository: https://github.com/ptgoetz/storm-signals.git
我运行它通过 yaml 解析器,但它说它是有效的。
试试这个(双引号):
repository: "https://github.com/ptgoetz/storm-signals.git"