Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

rangumanikar_88470 avatar image
rangumanikar_88470 asked ·

Startup failing with invalid yaml

Hi Team,


we are not able to bring up the services on one cluster apache 3.1.3 and failing with below error.

INFO [main] 2019-07-02 23:36:02,013 YamlConfigurationLoader.java:89 - Configuration location: file:/cassandra/product/srastg-cluster/apache-cassandra/apache-cassandra-3.11.1/conf/cassandra.yaml
Exception (org.apache.cassandra.exceptions.ConfigurationException) encountered during startup: Invalid yaml: file:/cassandra/product/srastg-cluster/apache-cassandra/apache-cassandra-3.11.1/conf/cassandra.yaml
Error: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=start_rpc for JavaBean=org.apache.cassandra.config.Config@67e2d983; Can not set boolean field org.apache.cassandra.config.Config.start_rpc to null value; in 'reader', line 10, column 1:
cluster_name: 'srastg-cluster'
^


Regards,

Manikar


cassandra
1 comment
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

@rangumanikar_88470 The error indicates that you have set start_rpc to a null value. The correct format is:

start_rpc: true
Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.