You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Adeel Akbar <ad...@panasiangroup.com> on 2012/06/29 11:53:12 UTC

upgrade issue

Hi, I have upgraded cassndra from 0.8.6 to 1.0.10 and found following 
errors once i started service;

INFO 05:11:50,948 Logging initialized
INFO 05:11:50,953 JVM vendor/version: OpenJDK 64-Bit Server VM/1.6.0_24
INFO 05:11:50,954 Heap size: 511705088/511705088
INFO 05:11:50,955 Classpath: 
/opt/apache-cassandra-1.0.10/bin/../conf:/opt/apache-cassandra-1.0.10/bin/../build/classes/main:/opt/apache-cassandra-1.0.10/bin/../build/classes/thrift:/opt/apache-cassandra-1.0.10/bin/../lib/antlr-3.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-clientutil-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-thrift-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-fixes.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-sources-fixes.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-cli-1.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-codec-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-lang-2.4.jar:/opt/apache-cassandra-1.0.10/bin/../lib/compress-lzf-0.8.4.jar:/opt/apache-cassandra-1.0.10/bin/../lib/concurrentlinkedhashmap-lru-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/guava-r08.jar:/opt/apache-cassandra-1.0.10/bin/../lib/high-scale-lib-1.1.2.j 
ar:/opt/apache-cassandra-1.0.10/bin/../lib/jackson-core-asl-1.4.0.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jackson-mapper-asl-1.4.0.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jamm-0.2.5.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jline-0.9.94.jar:/opt/apache-cassandra-1.0.10/bin/../lib/json-simple-1.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/libthrift-0.6.jar:/opt/apache-cassandra-1.0.10/bin/../lib/log4j-1.2.16.jar:/opt/apache-cassandra-1.0.10/bin/../lib/servlet-api-2.5-20081211.jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-api-1.6.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-log4j12-1.6.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/snakeyaml-1.6.jar:/opt/apache-cassandra-1.0.10/bin/../lib/snappy-java-1.0.4.1.jar
INFO 05:11:50,957 JNA not found. Native methods will be disabled.
INFO 05:11:50,966 Loading settings from 
file:/opt/apache-cassandra-1.0.10/conf/cassandra.yaml
ERROR 05:11:51,057 Fatal configuration error error
while scanning for the next token
found character         '\t' that cannot start any token
  in "<reader>", line 102, column 1:
           - seeds: "172.16.100.244,172. ...
     ^

         at 
org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:357)
         at 
org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:180)
         at 
org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:591)
         at 
org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:162)
         at 
org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:147)
         at 
org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:131)
         at 
org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229)
         at 
org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
         at 
org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
         at 
org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:157)
         at 
org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229)
         at 
org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
         at 
org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:121)
         at 
org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104)
         at 
org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:117)
         at org.yaml.snakeyaml.Loader.load(Loader.java:52)
         at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
         at 
org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:131)
         at 
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:131)
         at 
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:356)
         at 
org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)
while scanning for the next token; found character      '\t' that cannot 
start any token
Invalid yaml; unable to start server.  See log for stacktrace.

-- 


Thanks & Regards

*Adeel**Akbar*


Re: upgrade issue

Posted by Jonathan Ellis <jb...@gmail.com>.
More generally, don't just throw your old config file at a new version
of Cassandra; start with the new version's config, then apply any
customizations that are still relevant.

On Fri, Jun 29, 2012 at 8:40 AM, Romain HARDOUIN
<ro...@urssaf.fr> wrote:
>
> commitlog_rotation_threshold_in_mb was removed in 1.0.0-beta1
> (CASSANDRA-2771).
>
>
> Adeel Akbar <ad...@panasiangroup.com> a écrit sur 29/06/2012 15:24:18
> :
>
>
>> Thanks for the help. Now I am facing another issue;
>>
>> INFO 09:23:45,111 Logging initialized
>>  INFO 09:23:45,119 JVM vendor/version: OpenJDK 64-Bit Server VM/1.6.0_24
>>  INFO 09:23:45,119 Heap size: 511705088/511705088
>>  INFO 09:23:45,120 Classpath: /opt/apache-cassandra-1.0.10/bin/..
>> /conf:/opt/apache-cassandra-1.0.10/bin/../build/classes/main:
>> /opt/apache-cassandra-1.0.10/bin/../build/classes/thrift:
>> /opt/apache-cassandra-1.0.10/bin/../lib/antlr-3.2.jar:/opt/apache-
>> cassandra-1.0.10/bin/../lib/apache-cassandra-1.0.10.jar:/opt/apache-
>> cassandra-1.0.10/bin/../lib/apache-cassandra-clientutil-1.0.10.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-thrift-1.0.
>> 10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-fixes.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-sources-fixes.
>> jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-cli-1.1.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/commons-codec-1.2.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/commons-lang-2.4.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/compress-lzf-0.8.4.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/concurrentlinkedhashmap-
>> lru-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/guava-r08.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/high-scale-lib-1.1.2.j ar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/jackson-core-asl-1.4.0.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/jackson-mapper-asl-1.4.0.
>> jar:/opt/apache-cassandra-1.0.10/bin/../lib/jamm-0.2.5.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/jline-0.9.94.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/json-simple-1.1.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/libthrift-0.6.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/log4j-1.2.16.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/servlet-api-2.5-20081211.
>> jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-api-1.6.1.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/slf4j-log4j12-1.6.1.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/snakeyaml-1.6.jar:
>> /opt/apache-cassandra-1.0.10/bin/../lib/snappy-java-1.0.4.1.jar
>>  INFO 09:23:45,122 JNA not found. Native methods will be disabled.
>>  INFO 09:23:45,131 Loading settings from file:/opt/apache-
>> cassandra-1.0.10/conf/cassandra.yaml
>> ERROR 09:23:45,303 Fatal configuration error error
>> Can't construct a java object for tag:yaml.org,2002:org.apache.
>> cassandra.config.Config; exception=Cannot create
>> property=commitlog_rotation_threshold_in_mb for JavaBean=org.apache.
>> cassandra.config.Config@4dd36dfe; Unable to find property
>> 'commitlog_rotation_threshold_in_mb' on class: org.apache.cassandra.
>> config.Config
>>  in "<reader>", line 10, column 1:
>>     cluster_name: 'Test Cluster'
>>     ^
>>
>>         at org.yaml.snakeyaml.constructor.
>> Constructor$ConstructYamlObject.construct(Constructor.java:372)
>>         at org.yaml.snakeyaml.constructor.BaseConstructor.
>> constructObject(BaseConstructor.java:177)
>>         at org.yaml.snakeyaml.constructor.BaseConstructor.
>> constructDocument(BaseConstructor.java:136)
>>         at org.yaml.snakeyaml.constructor.BaseConstructor.
>> getSingleData(BaseConstructor.java:122)
>>         at org.yaml.snakeyaml.Loader.load(Loader.java:52)
>>         at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
>>         at org.apache.cassandra.config.DatabaseDescriptor.
>> <clinit>(DatabaseDescriptor.java:131)
>>         at org.apache.cassandra.service.AbstractCassandraDaemon.
>> setup(AbstractCassandraDaemon.java:131)
>>         at org.apache.cassandra.service.AbstractCassandraDaemon.
>> activate(AbstractCassandraDaemon.java:356)
>>         at org.apache.cassandra.thrift.CassandraDaemon.
>> main(CassandraDaemon.java:107)
>> Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create
>> property=commitlog_rotation_threshold_in_mb for JavaBean=org.apache.
>> cassandra.config.Config@4dd36dfe; Unable to find property
>> 'commitlog_rotation_threshold_in_mb' on class: org.apache.cassandra.
>> config.Config
>>         at org.yaml.snakeyaml.constructor.
>>
>> Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:305)
>>         at org.yaml.snakeyaml.constructor.
>> Constructor$ConstructMapping.construct(Constructor.java:184)
>>         at org.yaml.snakeyaml.constructor.
>
>> Constructor$ConstructYamlObject.construct(Constructor.java:370)
>>         ... 9 more
>> Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find
>> property 'commitlog_rotation_threshold_in_mb' on class: org.apache.
>> cassandra.config.Config
>>         at org.yaml.snakeyaml.constructor.
>> Constructor$ConstructMapping.getProperty(Constructor.java:342)
>>         at org.yaml.snakeyaml.constructor.
>>
>> Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:240)
>>         ... 11 more
>> null; Can't construct a java object for tag:yaml.org,2002:org.
>> apache.cassandra.config.Config; exception=Cannot create
>> property=commitlog_rotation_threshold_in_mb for JavaBean=org.apache.
>> cassandra.config.Config@4dd36dfe; Unable to find property
>> 'commitlog_rotation_threshold_in_mb' on class: org.apache.cassandra.
>> config.Config
>> Invalid yaml; unable to start server.  See log for stacktrace.
>
>>
>> Thanks & Regards
>>
>> Adeel Akbar



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Re: upgrade issue

Posted by Romain HARDOUIN <ro...@urssaf.fr>.
commitlog_rotation_threshold_in_mb was removed in 1.0.0-beta1 
(CASSANDRA-2771).


Adeel Akbar <ad...@panasiangroup.com> a écrit sur 29/06/2012 
15:24:18 :

> Thanks for the help. Now I am facing another issue;
> 
> INFO 09:23:45,111 Logging initialized
>  INFO 09:23:45,119 JVM vendor/version: OpenJDK 64-Bit Server VM/1.6.0_24
>  INFO 09:23:45,119 Heap size: 511705088/511705088
>  INFO 09:23:45,120 Classpath: /opt/apache-cassandra-1.0.10/bin/..
> /conf:/opt/apache-cassandra-1.0.10/bin/../build/classes/main:
> /opt/apache-cassandra-1.0.10/bin/../build/classes/thrift:
> /opt/apache-cassandra-1.0.10/bin/../lib/antlr-3.2.jar:/opt/apache-
> cassandra-1.0.10/bin/../lib/apache-cassandra-1.0.10.jar:/opt/apache-
> cassandra-1.0.10/bin/../lib/apache-cassandra-clientutil-1.0.10.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-thrift-1.0.
> 10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-fixes.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-sources-fixes.
> jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-cli-1.1.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/commons-codec-1.2.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/commons-lang-2.4.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/compress-lzf-0.8.4.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/concurrentlinkedhashmap-
> lru-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/guava-r08.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/high-scale-lib-1.1.2.j ar:
> /opt/apache-cassandra-1.0.10/bin/../lib/jackson-core-asl-1.4.0.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/jackson-mapper-asl-1.4.0.
> jar:/opt/apache-cassandra-1.0.10/bin/../lib/jamm-0.2.5.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/jline-0.9.94.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/json-simple-1.1.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/libthrift-0.6.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/log4j-1.2.16.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/servlet-api-2.5-20081211.
> jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-api-1.6.1.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/slf4j-log4j12-1.6.1.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/snakeyaml-1.6.jar:
> /opt/apache-cassandra-1.0.10/bin/../lib/snappy-java-1.0.4.1.jar
>  INFO 09:23:45,122 JNA not found. Native methods will be disabled.
>  INFO 09:23:45,131 Loading settings from file:/opt/apache-
> cassandra-1.0.10/conf/cassandra.yaml
> ERROR 09:23:45,303 Fatal configuration error error
> Can't construct a java object for tag:yaml.org,2002:org.apache.
> cassandra.config.Config; exception=Cannot create 
> property=commitlog_rotation_threshold_in_mb for JavaBean=org.apache.
> cassandra.config.Config@4dd36dfe; Unable to find property 
> 'commitlog_rotation_threshold_in_mb' on class: org.apache.cassandra.
> config.Config
>  in "<reader>", line 10, column 1:
>     cluster_name: 'Test Cluster'
>     ^
> 
>         at org.yaml.snakeyaml.constructor.
> Constructor$ConstructYamlObject.construct(Constructor.java:372)
>         at org.yaml.snakeyaml.constructor.BaseConstructor.
> constructObject(BaseConstructor.java:177)
>         at org.yaml.snakeyaml.constructor.BaseConstructor.
> constructDocument(BaseConstructor.java:136)
>         at org.yaml.snakeyaml.constructor.BaseConstructor.
> getSingleData(BaseConstructor.java:122)
>         at org.yaml.snakeyaml.Loader.load(Loader.java:52)
>         at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
>         at org.apache.cassandra.config.DatabaseDescriptor.
> <clinit>(DatabaseDescriptor.java:131)
>         at org.apache.cassandra.service.AbstractCassandraDaemon.
> setup(AbstractCassandraDaemon.java:131)
>         at org.apache.cassandra.service.AbstractCassandraDaemon.
> activate(AbstractCassandraDaemon.java:356)
>         at org.apache.cassandra.thrift.CassandraDaemon.
> main(CassandraDaemon.java:107)
> Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create 
> property=commitlog_rotation_threshold_in_mb for JavaBean=org.apache.
> cassandra.config.Config@4dd36dfe; Unable to find property 
> 'commitlog_rotation_threshold_in_mb' on class: org.apache.cassandra.
> config.Config
>         at org.yaml.snakeyaml.constructor.
> 
Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:305)
>         at org.yaml.snakeyaml.constructor.
> Constructor$ConstructMapping.construct(Constructor.java:184)
>         at org.yaml.snakeyaml.constructor.
> Constructor$ConstructYamlObject.construct(Constructor.java:370)
>         ... 9 more
> Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find 
> property 'commitlog_rotation_threshold_in_mb' on class: org.apache.
> cassandra.config.Config
>         at org.yaml.snakeyaml.constructor.
> Constructor$ConstructMapping.getProperty(Constructor.java:342)
>         at org.yaml.snakeyaml.constructor.
> 
Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:240)
>         ... 11 more
> null; Can't construct a java object for tag:yaml.org,2002:org.
> apache.cassandra.config.Config; exception=Cannot create 
> property=commitlog_rotation_threshold_in_mb for JavaBean=org.apache.
> cassandra.config.Config@4dd36dfe; Unable to find property 
> 'commitlog_rotation_threshold_in_mb' on class: org.apache.cassandra.
> config.Config
> Invalid yaml; unable to start server.  See log for stacktrace.
> 
> Thanks & Regards
> 
> Adeel Akbar

Re: upgrade issue

Posted by Adeel Akbar <ad...@panasiangroup.com>.
Thanks for the help. Now I am facing another issue;

INFO 09:23:45,111 Logging initialized
  INFO 09:23:45,119 JVM vendor/version: OpenJDK 64-Bit Server VM/1.6.0_24
  INFO 09:23:45,119 Heap size: 511705088/511705088
  INFO 09:23:45,120 Classpath: 
/opt/apache-cassandra-1.0.10/bin/../conf:/opt/apache-cassandra-1.0.10/bin/../build/classes/main:/opt/apache-cassandra-1.0.10/bin/../build/classes/thrift:/opt/apache-cassandra-1.0.10/bin/../lib/antlr-3.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-clientutil-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-thrift-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-fixes.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-sources-fixes.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-cli-1.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-codec-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-lang-2.4.jar:/opt/apache-cassandra-1.0.10/bin/../lib/compress-lzf-0.8.4.jar:/opt/apache-cassandra-1.0.10/bin/../lib/concurrentlinkedhashmap-lru-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/guava-r08.jar:/opt/apache-cassandra-1.0.10/bin/../lib/high-scale-lib-1.1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jackson-core-asl-1.4.0.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jackson-mapper-asl-1.4.0.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jamm-0.2.5.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jline-0.9.94.jar:/opt/apache-cassandra-1.0.10/bin/../lib/json-simple-1.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/libthrift-0.6.jar:/opt/apache-cassandra-1.0.10/bin/../lib/log4j-1.2.16.jar:/opt/apache-cassandra-1.0.10/bin/../lib/servlet-api-2.5-20081211.jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-api-1.6.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-log4j12-1.6.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/snakeyaml-1.6.jar:/opt/apache-cassandra-1.0.10/bin/../lib/snappy-java-1.0.4.1.jar
  INFO 09:23:45,122 JNA not found. Native methods will be disabled.
  INFO 09:23:45,131 Loading settings from 
file:/opt/apache-cassandra-1.0.10/conf/cassandra.yaml
ERROR 09:23:45,303 Fatal configuration error error
Can't construct a java object for 
tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot 
create property=commitlog_rotation_threshold_in_mb for 
JavaBean=org.apache.cassandra.config.Config@4dd36dfe; Unable to find 
property 'commitlog_rotation_threshold_in_mb' on class: 
org.apache.cassandra.config.Config
  in "<reader>", line 10, column 1:
     cluster_name: 'Test Cluster'
     ^

         at 
org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:372)
         at 
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:177)
         at 
org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:136)
         at 
org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:122)
         at org.yaml.snakeyaml.Loader.load(Loader.java:52)
         at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
         at 
org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:131)
         at 
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:131)
         at 
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:356)
         at 
org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create 
property=commitlog_rotation_threshold_in_mb for 
JavaBean=org.apache.cassandra.config.Config@4dd36dfe; Unable to find 
property 'commitlog_rotation_threshold_in_mb' on class: 
org.apache.cassandra.config.Config
         at 
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:305)
         at 
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:184)
         at 
org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:370)
         ... 9 more
Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find 
property 'commitlog_rotation_threshold_in_mb' on class: 
org.apache.cassandra.config.Config
         at 
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.getProperty(Constructor.java:342)
         at 
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:240)
         ... 11 more
null; Can't construct a java object for 
tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot 
create property=commitlog_rotation_threshold_in_mb for 
JavaBean=org.apache.cassandra.config.Config@4dd36dfe; Unable to find 
property 'commitlog_rotation_threshold_in_mb' on class: 
org.apache.cassandra.config.Config
Invalid yaml; unable to start server.  See log for stacktrace.


Thanks & Regards

*Adeel**Akbar*

On 6/29/2012 6:16 PM, Viktor Jevdokimov wrote:
>
> Replace tabs with spaces in Cassandra.yaml
>
>
>
> Best regards / Pagarbiai
> *Viktor Jevdokimov*
> Senior Developer
>
> Email: Viktor.Jevdokimov@adform.com <ma...@adform.com>
> Phone: +370 5 212 3063, Fax +370 5 261 0453
> J. Jasinskio 16C, LT-01112 Vilnius, Lithuania
> Follow us on Twitter: @adforminsider 
> <http://twitter.com/#%21/adforminsider>
> What is Adform: watch this short video <http://vimeo.com/adform/display>
> 	
> Adform News <http://www.adform.com>
>
>
> Disclaimer: The information contained in this message and attachments 
> is intended solely for the attention and use of the named addressee 
> and may be confidential. If you are not the intended recipient, you 
> are reminded that the information remains the property of the sender. 
> You must not use, disclose, distribute, copy, print or rely on this 
> e-mail. If you have received this message in error, please contact the 
> sender immediately and irrevocably delete this message and any copies.
>
> *From:*Adeel Akbar [mailto:adeel.akbar@panasiangroup.com]
> *Sent:* Friday, June 29, 2012 12:53
> *To:* user@cassandra.apache.org
> *Subject:* upgrade issue
>
> Hi, I have upgraded cassndra from 0.8.6 to 1.0.10 and found following 
> errors once i started service;
>
> INFO 05:11:50,948 Logging initialized
> INFO 05:11:50,953 JVM vendor/version: OpenJDK 64-Bit Server VM/1.6.0_24
> INFO 05:11:50,954 Heap size: 511705088/511705088
> INFO 05:11:50,955 Classpath: 
> /opt/apache-cassandra-1.0.10/bin/../conf:/opt/apache-cassandra-1.0.10/bin/../build/classes/main:/opt/apache-cassandra-1.0.10/bin/../build/classes/thrift:/opt/apache-cassandra-1.0.10/bin/../lib/antlr-3.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-clientutil-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-thrift-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-fixes.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-sources-fixes.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-cli-1.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-codec-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-lang-2.4.jar:/opt/apache-cassandra-1.0.10/bin/../lib/compress-lzf-0.8.4.jar:/opt/apache-cassandra-1.0.10/bin/../lib/concurrentlinkedhashmap-lru-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/guava-r08.jar:/opt/apache-cassandra-1.0.10/bin/../lib/high-scale-lib-1.1.2.j 
> ar:/opt/apache-cassandra-1.0.10/bin/../lib/jackson-core-asl-1.4.0.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jackson-mapper-asl-1.4.0.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jamm-0.2.5.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jline-0.9.94.jar:/opt/apache-cassandra-1.0.10/bin/../lib/json-simple-1.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/libthrift-0.6.jar:/opt/apache-cassandra-1.0.10/bin/../lib/log4j-1.2.16.jar:/opt/apache-cassandra-1.0.10/bin/../lib/servlet-api-2.5-20081211.jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-api-1.6.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-log4j12-1.6.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/snakeyaml-1.6.jar:/opt/apache-cassandra-1.0.10/bin/../lib/snappy-java-1.0.4.1.jar
> INFO 05:11:50,957 JNA not found. Native methods will be disabled.
> INFO 05:11:50,966 Loading settings from 
> file:/opt/apache-cassandra-1.0.10/conf/cassandra.yaml 
> <file:///%5C%5Copt%5Capache-cassandra-1.0.10%5Cconf%5Ccassandra.yaml>
> ERROR 05:11:51,057 Fatal configuration error error
> while scanning for the next token
> found character         '\t' that cannot start any token
>  in "<reader>", line 102, column 1:
>           - seeds: "172.16.100.244,172. ...
>     ^
>
>         at 
> org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:357)
>         at 
> org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:180)
>         at 
> org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:591)
>         at 
> org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:162)
>         at 
> org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:147)
>         at 
> org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:131)
>         at 
> org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229)
>         at 
> org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
>         at 
> org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
>         at 
> org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:157)
>         at 
> org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229)
>         at 
> org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
>         at 
> org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:121)
>         at 
> org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104)
>         at 
> org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:117)
>         at org.yaml.snakeyaml.Loader.load(Loader.java:52)
>         at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
>         at 
> org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:131)
>         at 
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:131)
>         at 
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:356)
>         at 
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)
> while scanning for the next token; found character '\t' that cannot 
> start any token
> Invalid yaml; unable to start server.  See log for stacktrace.
>
> -- 
>
>
> Thanks & Regards
>
> *Adeel Akbar*
>



RE: upgrade issue

Posted by Viktor Jevdokimov <Vi...@adform.com>.
Replace tabs with spaces in Cassandra.yaml



Best regards / Pagarbiai
Viktor Jevdokimov
Senior Developer

Email: Viktor.Jevdokimov@adform.com<ma...@adform.com>
Phone: +370 5 212 3063, Fax +370 5 261 0453
J. Jasinskio 16C, LT-01112 Vilnius, Lithuania
Follow us on Twitter: @adforminsider<http://twitter.com/#!/adforminsider>
What is Adform: watch this short video<http://vimeo.com/adform/display>

[Adform News] <http://www.adform.com>


Disclaimer: The information contained in this message and attachments is intended solely for the attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that the information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this e-mail. If you have received this message in error, please contact the sender immediately and irrevocably delete this message and any copies.

From: Adeel Akbar [mailto:adeel.akbar@panasiangroup.com]
Sent: Friday, June 29, 2012 12:53
To: user@cassandra.apache.org
Subject: upgrade issue

Hi, I have upgraded cassndra from 0.8.6 to 1.0.10 and found following errors once i started service;

INFO 05:11:50,948 Logging initialized
INFO 05:11:50,953 JVM vendor/version: OpenJDK 64-Bit Server VM/1.6.0_24
INFO 05:11:50,954 Heap size: 511705088/511705088
INFO 05:11:50,955 Classpath: /opt/apache-cassandra-1.0.10/bin/../conf:/opt/apache-cassandra-1.0.10/bin/../build/classes/main:/opt/apache-cassandra-1.0.10/bin/../build/classes/thrift:/opt/apache-cassandra-1.0.10/bin/../lib/antlr-3.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-clientutil-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/apache-cassandra-thrift-1.0.10.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-fixes.jar:/opt/apache-cassandra-1.0.10/bin/../lib/avro-1.4.0-sources-fixes.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-cli-1.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-codec-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/commons-lang-2.4.jar:/opt/apache-cassandra-1.0.10/bin/../lib/compress-lzf-0.8.4.jar:/opt/apache-cassandra-1.0.10/bin/../lib/concurrentlinkedhashmap-lru-1.2.jar:/opt/apache-cassandra-1.0.10/bin/../lib/guava-r08.jar:/opt/apache-cassandra-1.0.10/bin/../lib/high-scale-lib-1.1.2.j ar:/opt/apache-cassandra-1.0.10/bin/../lib/jackson-core-asl-1.4.0.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jackson-mapper-asl-1.4.0.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jamm-0.2.5.jar:/opt/apache-cassandra-1.0.10/bin/../lib/jline-0.9.94.jar:/opt/apache-cassandra-1.0.10/bin/../lib/json-simple-1.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/libthrift-0.6.jar:/opt/apache-cassandra-1.0.10/bin/../lib/log4j-1.2.16.jar:/opt/apache-cassandra-1.0.10/bin/../lib/servlet-api-2.5-20081211.jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-api-1.6.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/slf4j-log4j12-1.6.1.jar:/opt/apache-cassandra-1.0.10/bin/../lib/snakeyaml-1.6.jar:/opt/apache-cassandra-1.0.10/bin/../lib/snappy-java-1.0.4.1.jar
INFO 05:11:50,957 JNA not found. Native methods will be disabled.
INFO 05:11:50,966 Loading settings from file:/opt/apache-cassandra-1.0.10/conf/cassandra.yaml<file:///\\opt\apache-cassandra-1.0.10\conf\cassandra.yaml>
ERROR 05:11:51,057 Fatal configuration error error
while scanning for the next token
found character         '\t' that cannot start any token
 in "<reader>", line 102, column 1:
          - seeds: "172.16.100.244,172. ...
    ^

        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:357)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:180)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:591)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:162)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:147)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:131)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
        at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:157)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:121)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:117)
        at org.yaml.snakeyaml.Loader.load(Loader.java:52)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:131)
        at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:131)
        at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:356)
        at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)
while scanning for the next token; found character      '\t' that cannot start any token
Invalid yaml; unable to start server.  See log for stacktrace.
--


Thanks & Regards

Adeel Akbar