incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Moving from 0.7.0-beta1 to nightly build
Date Wed, 22 Sep 2010 14:28:14 GMT
the strategy is saved as part of your schema.  install the new build
before loading it.

On Wed, Sep 22, 2010 at 3:35 AM, andy C <acobley@computing.dundee.ac.uk> wrote:
> I'm running a test cluster for development and evaluation of Cassandra.  In
> order to use the latest build of Hector (the 0.7.0 branch) I've need to move
> from 0.6.5 first to  0.7.0-beta1 of Cassandra and then to the latest nightly
> build (actually 2010-09-20_14-20-20).  In order to move over I've followed
> the following procedure:
> 1: get 0.7.0 running on all nodes, use schematool to update schema
> 2: confirm with cassandra-cli that the schema looks OK
> 3: Take down all nodes
> 4: on one node install nightly build
> 5:use config-converter to create config from 0.6.5 to nightly config
> 6: Change RackUnawareStrategy to SimpleStrategy in cassandra.yaml
> 7: start Cassandra
> However I am still getting RackUnawareStrategy exceptions (output below).
> Any ideas on the proper procedure ?
> Ta
> Andy
>  Using adaptive heap size:  1002M
>  INFO 09:12:15,962 JNA not found. Native methods will be disabled.
>  INFO 09:12:16,200 DiskAccessMode 'auto' determined to be standard,
> indexAccessMode is standard
>  INFO 09:12:16,368 Sampling index for
> /var/lib/cassandra/data/system/Schema-e-2-<>
>  INFO 09:12:16,393 Sampling index for
> /var/lib/cassandra/data/system/Schema-e-1-<>
>  INFO 09:12:16,425 Sampling index for
> /var/lib/cassandra/data/system/Migrations-e-2-<>
>  INFO 09:12:16,427 Sampling index for
> /var/lib/cassandra/data/system/Migrations-e-1-<>
>  INFO 09:12:16,436 Sampling index for
> /var/lib/cassandra/data/system/LocationInfo-e-9-<>
>  INFO 09:12:16,513 Loading schema version
> 6821232f-c248-11df-bad6-869ef8d6f292
> ERROR 09:12:16,866 Exception encountered during startup.
> java.lang.RuntimeException: Could not create ReplicationStrategy of type
> org.apache.cassandra.locator.RackUnawareStrategy
>         at
> org.apache.cassandra.config.KSMetaData.inflate(KSMetaData.java:103)
>         at
> org.apache.cassandra.db.DefsTable.loadFromStorage(DefsTable.java:106)
>         at
> org.apache.cassandra.config.DatabaseDescriptor.loadSchemas(DatabaseDescriptor.java:441)
>         at
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:109)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:54)
>         at
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:199)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:133)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.cassandra.locator.RackUnawareStrategy
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         at
> org.apache.cassandra.config.KSMetaData.inflate(KSMetaData.java:99)
>         ... 6 more
> Exception encountered during startup.
> java.lang.RuntimeException: Could not create ReplicationStrategy of type
> org.apache.cassandra.locator.RackUnawareStrategy
>         at
> org.apache.cassandra.config.KSMetaData.inflate(KSMetaData.java:103)
>         at
> org.apache.cassandra.db.DefsTable.loadFromStorage(DefsTable.java:106)
>         at
> org.apache.cassandra.config.DatabaseDescriptor.loadSchemas(DatabaseDescriptor.java:441)
>         at
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:109)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:54)
>         at
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:199)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:133)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.cassandra.locator.RackUnawareStrategy
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         at
> org.apache.cassandra.config.KSMetaData.inflate(KSMetaData.java:99)
>         ... 6 more
> The University of Dundee is a Scottish Registered Charity, No. SC015096.



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

Mime
View raw message