0
votes

I am getting following error when I am trying to run cassandra for the first time. any suggestion?

CassandraDaemon.java:752 - Exception encountered during startup: Invalid yaml: file:/D:/apache-cassandra-3.10/conf/cassandra.yaml Error: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=java.lang.reflect.InvocationTargetException; in 'reader', line 10, column 1: cluster_name: 'Test Cluster' ^

1
Did you change anything in Cassandra.yaml file?. Add the contents of this file, so I could help you. - Shoban Sundar
okay. I will update you once add content of this file. - Divyang Shah
hi @Shoban, it would be very clumsy to add whole yaml file content over here. and I haven't done any changes in it. - Divyang Shah
What is the jdk version you are using? - Shoban Sundar
jdk version 1.8 - Divyang Shah

1 Answers

0
votes

check the cassandra.yaml file. Even if it seems to have correct format, there must be a space after : for each property.

In my case I modified seeds like below:

seeds:"IP1,IP2"

which caused the same error.
Misleadingly the error indicates the cluster_name.
I put the space after colon

seeds: "IP1,IP2"

and started Cassandra service. The error disappeared and Cassandra was able to start successfully.