[ https://issues.apache.org/jira/browse/CASSANDRA-5215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569303#comment-13569303 ]
Joaquin Casares commented on CASSANDRA-5215: -------------------------------------------- Doesn't it look like it. Sorry, this was installed via the debian packages. Forgot to mention that. > Ec2Snitch does not work properly > -------------------------------- > > Key: CASSANDRA-5215 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5215 > Project: Cassandra > Issue Type: Bug > Affects Versions: 1.2.1 > Reporter: Joaquin Casares > Fix For: 1.2.2 > > > When setting my endpoint_snitch to be Ec2Snitch, I get this: > {CODE} > ERROR [main] 2013-02-01 22:57:20,742 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:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > 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:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > 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:418) > at java.util.Properties.load0(Properties.java:337) > at java.util.Properties.load(Properties.java:325) > at > org.apache.cassandra.locator.SnitchProperties.<clinit>(SnitchProperties.java:35) > ... 16 more > {CODE} > Moving to SimpleSnitch allows the node to startup fine. -- 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