Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56B27192D for ; Wed, 20 Apr 2011 01:11:44 +0000 (UTC) Received: (qmail 75857 invoked by uid 500); 20 Apr 2011 01:11:44 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 75818 invoked by uid 500); 20 Apr 2011 01:11:44 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 75810 invoked by uid 99); 20 Apr 2011 01:11:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 01:11:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 01:11:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B5D52A9189 for ; Wed, 20 Apr 2011 01:11:05 +0000 (UTC) Date: Wed, 20 Apr 2011 01:11:05 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <1062930472.68799.1303261865741.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <181758731.68696.1303260365690.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CASSANDRA-2515) Error starting a cassandra 0.8 cluster using the config file from an existing 0.74 cluster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-2515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis resolved CASSANDRA-2515. --------------------------------------- Resolution: Not A Problem 0.8 isn't supposed to start up w/ a 0.7 config. diff the two sample files to see what's changed; in this case it's CASSANDRA-1669. > Error starting a cassandra 0.8 cluster using the config file from an existing 0.74 cluster > ------------------------------------------------------------------------------------------------------------- > > 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 "", 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.(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} > *0.74 cassandra.yaml* > {noformat} > # Addresses of hosts that are deemed contact points. > # Cassandra nodes use this list of hosts to find each other and learn > # the topology of the ring. You must change this if you are running > # multiple nodes! > seeds: > - 184.106.199.149 > {noformat} > *0.8 cassandra.yaml* > {noformat} > # any class that implements the SeedProvider interface and has a constructor that takes a Map of > # parameters will do. > seed_provider: > # Addresses of hosts that are deemed contact points. > # Cassandra nodes use this list of hosts to find each other and learn > # the topology of the ring. You must change this if you are running > # multiple nodes! > - class_name: org.apache.cassandra.locator.SimpleSeedProvider > parameters: > # seeds is actually a comma-delimited list of addresses. > - seeds: "184.106.199.149" > {noformat} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira