cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dykman <mdyk...@gmail.com>
Subject Re: Error while starting Cassandra for the first time
Date Wed, 04 Feb 2015 22:29:07 GMT
I would start looking in /home/csduser/cassandra/conf/cassandra.yaml.

Perhaps you could validate the YAML format of that file with an independent
tool such as http://yaml-online-parser.appspot.com/

On Wed, Feb 4, 2015 at 5:23 PM, Krish Donald <gotomypc27@gmail.com> wrote:

> Hi,
>
> I am getting below error:
> Not able to understand why ??
>
> [csduser@master bin]$ ./cassandra -f
> CompilerOracle: inline
> org/apache/cassandra/db/AbstractNativeCell.compareTo
> (Lorg/apache/cassandra/db/composites/Composite;)I
> CompilerOracle: inline
> org/apache/cassandra/db/composites/AbstractSimpleCellNameType.compareUnsigned
> (Lorg/apache/cassandra/db/composites/Composite;Lorg/apache/cassandra/db/composites/Composite;)I
> CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare
> (Ljava/nio/ByteBuffer;[B)I
> CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare
> ([BLjava/nio/ByteBuffer;)I
> CompilerOracle: inline
> org/apache/cassandra/utils/ByteBufferUtil.compareUnsigned
> (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
> CompilerOracle: inline
> org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo
> (Ljava/lang/Object;JILjava/lang/Object;JI)I
> CompilerOracle: inline
> org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo
> (Ljava/lang/Object;JILjava/nio/ByteBuffer;)I
> CompilerOracle: inline
> org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo
> (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
> INFO  22:17:19 Hostname: master.my.com
> INFO  22:17:19 Loading settings from
> file:/home/csduser/cassandra/conf/cassandra.yaml
> ERROR 22:17:20 Fatal configuration error
> org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml
>         at
> org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:120)
> ~[apache-cassandra-2.1.2.jar:2.1.2]
>         at
> org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:84)
> ~[apache-cassandra-2.1.2.jar:2.1.2]
>         at
> org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:158)
> ~[apache-cassandra-2.1.2.jar:2.1.2]
>         at
> org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:133)
> ~[apache-cassandra-2.1.2.jar:2.1.2]
>         at
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:96)
> [apache-cassandra-2.1.2.jar:2.1.2]
>         at
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:448)
> [apache-cassandra-2.1.2.jar:2.1.2]
>         at
> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:537)
> [apache-cassandra-2.1.2.jar:2.1.2]
> Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning a
> simple key; could not found expected ':';  in 'reader', line 33, column 1:
>     # See http://wiki.apache.org/cas ...
>     ^
>         at
> org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(ScannerImpl.java:460)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:280)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:225)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:558)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
> ~[snakeyaml-1.11.jar:na]
>         at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481)
> ~[snakeyaml-1.11.jar:na]
>         at org.yaml.snakeyaml.Yaml.load(Yaml.java:412)
> ~[snakeyaml-1.11.jar:na]
>         at
> org.apache.cassandra.config.YamlConfigurationLoader.logConfig(YamlConfigurationLoader.java:126)
> ~[apache-cassandra-2.1.2.jar:2.1.2]
>         at
> org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:104)
> ~[apache-cassandra-2.1.2.jar:2.1.2]
>         ... 6 common frames omitted
> Invalid yaml
> Fatal configuration error; unable to start. See log for stacktrace.
>
>
> Thanks
> Krish
>



-- 
 - michael dykman
 - mdykman@gmail.com

 May the Source be with you.

Mime
View raw message