Error starting a cassandra 0.8 cluster using the config file from an existing
0.74 cluster <upgrade scenario>
-------------------------------------------------------------------------------------------------------------
Key: CASSANDRA-2515
URL: https://issues.apache.org/jira/browse/CASSANDRA-2515
Project: Cassandra
Issue Type: Bug
Affects Versions: 0.8
Environment: 3-node Centos 5.5 cluster on rackspace
Reporter: Cathy Daw
Priority: Trivial
This is probably just a documentation bug, but very frequently I will see users
perform this same action when upgrading a cluster.
*Reproduction Steps*
* Install a 3 node 0.74 cassandra cluster
* Edit cassandra.yaml for each cluster
* Start 0.74 do some stuff, shut it down.
* Install 0.8 on the same cluster, but a different directory
* Copy the cassandra.yaml from the 0.74 cluster to the 0.8 cluster.
* Try to startup the 0.8 cluster
*Error starting an 0.8*
{code}
[cassandra@cdaw-qa1 bin]$ ./cassandra -f
INFO 00:06:12,875 Logging initialized
INFO 00:06:12,891 Heap size: 510263296/511311872
INFO 00:06:12,893 JNA not found. Native methods will be disabled.
INFO 00:06:12,904 Loading settings from
file:/home/cassandra/apr19/conf/cassandra.yaml
ERROR 00:06:13,041 Fatal configuration error error
Can't construct a java object for
tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create
property=seeds for JavaBean=org.apache.cassandra.config.Config@207f5580; Unable
to find property 'seeds' 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:139)
at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:98)
at
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:314)
at
org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:80)
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=seeds
for JavaBean=org.apache.cassandra.config.Config@207f5580; Unable to find
property 'seeds' 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
'seeds' 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=seeds for JavaBean=org.apache.cassandra.config.Config@207f5580; Unable
to find property 'seeds' on class: org.apache.cassandra.config.Config
Invalid yaml; unable to start server. See log for stacktrace.
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira