cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vijay (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-5212) Unable to start when using Ec2Snitch
Date Fri, 01 Feb 2013 00:41:13 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vijay updated CASSANDRA-5212:
-----------------------------

    Attachment: 0001-CASSANDRA-5212.patch
    
> Unable to start when using Ec2Snitch
> ------------------------------------
>
>                 Key: CASSANDRA-5212
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5212
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.1
>         Environment: Ubuntu 12.04 x64
> OpenJDK 64-Bit Server VM/1.6.0_24
> m1.large EC2 Instance
> MAX_HEAP_SIZE="1242M"
> HEAP_NEWSIZE="200M"
>            Reporter: Jared Biel
>            Assignee: Vijay
>            Priority: Minor
>         Attachments: 0001-CASSANDRA-5212.patch
>
>
> Hello, we're using vanilla Cassandra in an EC2 environment and I just tested upgrading
from 1.2.0 to 1.2.1 on two test instances. Cassandra fails to start because it's unable to
load the Ec2Snitch. Version 1.2.0 was working OK. I have tried this on uninitialized/empty
instances and received the same result. Cassandra successfully starts when switching to SimpleSnitch.
Log output is below. We're using the official debian package from apache.org. Please let me
know if you need any more details, thanks!
> output.log
> {code}
> ERROR 21:25:06,684 Fatal configuration error
> org.apache.cassandra.exceptions.ConfigurationException: Error instantiating snitch class
'org.apache.cassandra.locator.Ec2Snitch'.
> 	at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:475)
> 	at org.apache.cassandra.config.DatabaseDescriptor.createEndpointSnitch(DatabaseDescriptor.java:525)
> 	at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:338)
> 	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:122)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:151)
> 	at org.apache.cassandra.service.CassandraDaemon.init(CassandraDaemon.java:315)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:616)
> 	at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:212)
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
> 	at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:457)
> 	... 10 more
> Caused by: java.lang.ExceptionInInitializerError
> 	at org.apache.cassandra.locator.Ec2Snitch.<init>(Ec2Snitch.java:65)
> 	... 15 more
> Caused by: java.lang.RuntimeException: Unable to read cassandra-rackdc.properties
> 	at org.apache.cassandra.locator.SnitchProperties.<clinit>(SnitchProperties.java:39)
> 	... 16 more
> Caused by: java.lang.NullPointerException
> 	at java.util.Properties$LineReader.readLine(Properties.java:435)
> 	at java.util.Properties.load0(Properties.java:354)
> 	at java.util.Properties.load(Properties.java:342)
> 	at org.apache.cassandra.locator.SnitchProperties.<clinit>(SnitchProperties.java:35)
> 	... 16 more
> Error instantiating snitch class 'org.apache.cassandra.locator.Ec2Snitch'.
> Fatal configuration error; unable to start server.  See log for stacktrace.
> Service exit with a return value of 1
> {code}
> system.log
> {code}
> INFO [main] 2013-01-31 21:25:05,016 CassandraDaemon.java (line 123) JVM vendor/version:
OpenJDK 64-Bit Server VM/1.6.0_24
> <SNIP>
> ERROR [main] 2013-01-31 21:24:52,028 DatabaseDescriptor.java (line 509) Fatal configuration
error
> org.apache.cassandra.exceptions.ConfigurationException: Error instantiating snitch class
'org.apache.cassandra.locator.Ec2Snitch'.
> 	at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:475)
> 	at org.apache.cassandra.config.DatabaseDescriptor.createEndpointSnitch(DatabaseDescriptor.java:525)
> 	at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:338)
> 	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:122)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:151)
> 	at org.apache.cassandra.service.CassandraDaemon.init(CassandraDaemon.java:315)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:616)
> 	at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:212)
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
> 	at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:457)
> 	... 10 more
> Caused by: java.lang.ExceptionInInitializerError
> 	at org.apache.cassandra.locator.Ec2Snitch.<init>(Ec2Snitch.java:65)
> 	... 15 more
> Caused by: java.lang.RuntimeException: Unable to read cassandra-rackdc.properties
> 	at org.apache.cassandra.locator.SnitchProperties.<clinit>(SnitchProperties.java:39)
> 	... 16 more
> Caused by: java.lang.NullPointerException
> 	at java.util.Properties$LineReader.readLine(Properties.java:435)
> 	at java.util.Properties.load0(Properties.java:354)
> 	at java.util.Properties.load(Properties.java:342)
> 	at org.apache.cassandra.locator.SnitchProperties.<clinit>(SnitchProperties.java:35)
> 	... 16 more
> <SNIP>
>  INFO [main] 2013-01-31 21:25:06,656 DatabaseDescriptor.java (line 267) Global memtable
threshold is enabled at 407MB
> ERROR [main] 2013-01-31 21:25:06,684 DatabaseDescriptor.java (line 509) Fatal configuration
error
> org.apache.cassandra.exceptions.ConfigurationException: Error instantiating snitch class
'org.apache.cassandra.locator.Ec2Snitch'.
> 	at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:475)
> 	at org.apache.cassandra.config.DatabaseDescriptor.createEndpointSnitch(DatabaseDescriptor.java:525)
> 	at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:338)
> 	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:122)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:151)
> 	at org.apache.cassandra.service.CassandraDaemon.init(CassandraDaemon.java:315)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:616)
> 	at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:212)
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
> 	at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:457)
> 	... 10 more
> Caused by: java.lang.ExceptionInInitializerError
> 	at org.apache.cassandra.locator.Ec2Snitch.<init>(Ec2Snitch.java:65)
> 	... 15 more
> Caused by: java.lang.RuntimeException: Unable to read cassandra-rackdc.properties
> 	at org.apache.cassandra.locator.SnitchProperties.<clinit>(SnitchProperties.java:39)
> 	... 16 more
> Caused by: java.lang.NullPointerException
> 	at java.util.Properties$LineReader.readLine(Properties.java:435)
> 	at java.util.Properties.load0(Properties.java:354)
> 	at java.util.Properties.load(Properties.java:342)
> 	at org.apache.cassandra.locator.SnitchProperties.<clinit>(SnitchProperties.java:35)
> 	... 16 more
> {code}

--
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

Mime
View raw message