Sorry for the late response: a) I posted the headline of the question wrong, as it has nothing to with Cassandra b) Nothing was wrong with the .yaml file, and I had the file validated. It is probably an issue with version of Ruby, that I bypassed by using someone else's local machine.
Thanks for the help though On Thu, Apr 16, 2015 at 10:58 PM, Nishu <[email protected]> wrote: > Since this is parsing error in storm.yaml file, check whether you have any > tabspace in file. Try to remove all tab or space and rewrite. > Then it should work fine. You can also validate your yaml file on yamlLint > <http://www.yamllint.com/>. > > > On Thu, Apr 16, 2015 at 6:35 PM, Gaurav Pandey <[email protected]> > wrote: > >> I am configuring Cassendra 1.0 on CentOS 5.7 but getting stacked when >> running the command "cassandra -f". Here is the error message- >> >> >> Caused by: expected '<document start>', but found BlockMappingStart >> in 'reader', line 24, column 1: >> storm.zookeeper.port: 2181 >> ^ >> >> 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:141) >> at backtype.storm.utils.Utils.readStormConfig(Utils.java:188) >> at backtype.storm.utils.Utils.<clinit>(Utils.java:71) >> ... 100 more >> >> Following is my storm.yaml file in /conf folder: >> >> >> --- >> java.library.path: /usr/local/lib >> nimbus.childopts: "-Xmx512m" >> nimbus.host: localhost >> storm.local.dir: /var/stormtmp >> storm.zookeeper.port: 2181 >> storm.zookeeper.servers: >> - localhost >> supervisor.childopts: "-Xmx256m" >> supervisor.slots.ports: >> - 6700 >> - 6701 >> - 6702 >> - 6703 >> worker.childopts: "-Xmx768m" >> >> >> Haven't got any answers from stack overflow as of now, can somebody please >> suggest where am I going wrogn? >> Also if I comment the whole storm.yaml file the error remains the same, but >> if I make some syntax error in storm.yaml file it does reflect in the error >> stack, along with other erross >> >> > > > -- > with regards, > Nishu Tayal >
