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 <romain.hardo...@urssaf.fr> wrote: > > commitlog_rotation_threshold_in_mb was removed in 1.0.0-beta1 > (CASSANDRA-2771). > > > Adeel Akbar <adeel.ak...@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