Issue Type: Bug Bug
Affects Versions: 1.2.1-1
Assignee: Stephen Connolly
Attachments: demo.zip
Created: 13/Apr/13 5:03 PM
Description:

Hi,

start-cluster seems to fail to properly configure and start the Cassandra instances and throws (full stacktrace below):

org.apache.cassandra.exceptions.ConfigurationException: For input string: "42535295865117307932921825928971026432"

Would it be possible to fix this in the next release?
More details and a workaround below. I have also attached a sample project to reproduce the issue easily.
Let me know if you need anything else.

Cheers,

M.

Diagnosis:

  • It seems that cassandra-maven-plugin fails to configure the tokens properly which then makes Murmur3Partitioner (now the default in Cassandra 1.2.*) fail.
  • This doesn't happen when you start only one node using start instead of start-cluster.

Workaround:
Adding the below to the cassandra-maven-plugin configuration seems to make it work properly:

<yaml>partitioner: org.apache.cassandra.dht.RandomPartitioner</yaml>

but isn't ideal, obviously.

Full stracktrace:

[INFO] --- cassandra-maven-plugin:1.2.1-1:start-cluster (default) @ perfandra-dao ---
[INFO] Starting for Cassandra Node 1...
[INFO] Starting for Cassandra Node 2...
[INFO] Starting for Cassandra Node 3...
[INFO] Starting for Cassandra Node 4...
[INFO] Waiting for Cassandra Node 1 to start...
[INFO] [ERROR] 22:43:35,096 Fatal configuration error
[INFO] org.apache.cassandra.exceptions.ConfigurationException: For input string: "42535295865117307932921825928971026432"
[INFO] 	at org.apache.cassandra.dht.Murmur3Partitioner$1.validate(Murmur3Partitioner.java:182)
[INFO] 	at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:443)
[INFO] 	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:123)
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:192)
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:411)
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:454)
[INFO] 	at org.codehaus.mojo.cassandra.CassandraMonitor.main(CassandraMonitor.java:148)
[INFO] For input string: "42535295865117307932921825928971026432"
[INFO] Fatal configuration error; unable to start server.  See log for stacktrace.
[INFO] [ERROR] 22:43:35,152 Fatal configuration error
[INFO] org.apache.cassandra.exceptions.ConfigurationException: For input string: "85070591730234615865843651857942052864"
[INFO] 	at org.apache.cassandra.dht.Murmur3Partitioner$1.validate(Murmur3Partitioner.java:182)
[INFO] 	at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:443)
[INFO] 	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:123)
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:192)
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:411)
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:454)
[INFO] 	at org.codehaus.mojo.cassandra.CassandraMonitor.main(CassandraMonitor.java:148)
[INFO] For input string: "85070591730234615865843651857942052864"
[INFO] Fatal configuration error; unable to start server.  See log for stacktrace.
[INFO] [ERROR] 22:43:35,235 Fatal configuration error
[INFO] org.apache.cassandra.exceptions.ConfigurationException: For input string: "127605887595351923798765477786913079296"
[INFO] 	at org.apache.cassandra.dht.Murmur3Partitioner$1.validate(Murmur3Partitioner.java:182)
[INFO] 	at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:443)
[INFO] 	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:123)
[INFO] For input string: "127605887595351923798765477786913079296"
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:192)
[INFO] Fatal configuration error; unable to start server.  See log for stacktrace.
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:411)
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:454)
[INFO] 	at org.codehaus.mojo.cassandra.CassandraMonitor.main(CassandraMonitor.java:148)
[INFO] [WARN] 22:43:35,534 MemoryMeter uninitialized (jamm not specified as java agent); KeyCache size in JVM Heap will not be calculated accurately. Usually this means cassandra-env.sh disabled jamm because you are using a buggy JRE; upgrade to the Sun JRE instead
[INFO] [WARN] 22:43:36,491 No host ID found, created 33f1ae4b-cdd7-4043-b304-5ebfdd0310d9 (Note: This should happen exactly once per node).
[INFO] Cassandra cluster "Test Cluster" started.
[INFO] Waiting for Cassandra Node 2 to start...
Environment: Mac OS X 10.8.3
Java 1.7.0_17 64 bit
Maven 3.0.5
Project: Mojo's Cassandra Maven Plugin
Priority: Critical Critical
Reporter: Marc CARRE
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to