cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vineet Mishra <clearmido...@gmail.com>
Subject Installing Cassandra Multinode on CentOs coming up with exception
Date Tue, 26 Aug 2014 07:12:29 GMT
Hi All,

I am installing Cassandra Multinode Setup on a 4 node CentOs Cluster, my
cassandra.yaml looks like so

cluster_name: 'node'
initial_token: 0
num_tokens: 256
seed_provider:
    - class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
    - seeds: "192.168.1.32"
listen_address: 192.168.1.32
rpc_address: 0.0.0.0
endpoint_snitch: RackInferringSnitch

Similarly cassandra.yaml for second node

cluster_name: 'node'
initial_token: 2305843009213693952
num_tokens: 256
seed_provider:
    - class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
    - seeds: "192.168.1.32"
listen_address: 192.168.1.36
rpc_address: 0.0.0.0
endpoint_snitch: RackInferringSnitch

and so on. . .

While trying to start the Server running on the Seed node(192.168.1.32) it
throws this nasty exception and didn't start,


-bash-4.1$ sudo bin/cassandra

-bash-4.1$  INFO 12:19:46,653 Logging initialized
 INFO 12:19:46,688 Loading settings from
file:/home/cluster/cassandra/conf/cassandra.yaml
ERROR 12:19:46,985 Fatal configuration error
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml
at
org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:100)
at
org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135)
at
org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:111)
at
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:156)
at
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:496)
at
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:585)
Caused by: Can't construct a java object for
tag:yaml.org,2002:org.apache.cassandra.config.Config;
exception=Cannot create property=seed_provider for
JavaBean=org.apache.cassandra.config.Config@676c6370;
java.lang.reflect.InvocationTargetException
 in 'reader', line 1, column 1:
    cluster_name: 'pcross'
    ^

at
org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:333)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141)
at
org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127)
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481)
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:475)
at
org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:93)
... 5 more
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create
property=seed_provider for
JavaBean=org.apache.cassandra.config.Config@676c6370;
java.lang.reflect.InvocationTargetException
at
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:299)
at
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:189)
at
org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:331)
... 11 more
Caused by: org.yaml.snakeyaml.error.YAMLException:
java.lang.reflect.InvocationTargetException
at
org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:542)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)
at
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:296)
... 13 more
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:526)
at
org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:540)
... 15 more
Caused by: java.lang.NullPointerException
at
org.apache.cassandra.config.SeedProviderDef.<init>(SeedProviderDef.java:33)
... 20 more
Invalid yaml


I am not sure exactly whats making it to throw NullPointer and halt the
process.

Expert Advice would be appreciated!
URGENT!

Thanks!

Mime
View raw message