michaelklishin / cassandra-chef-cookbook

Chef cookbook for Apache Cassandra, DataStax Enterprise (DSE) and DataStax agent
Apache License 2.0
163 stars 228 forks source link

Invalid yaml when installing dsc v2.1.2 #141

Closed jonathanhoskin closed 9 years ago

jonathanhoskin commented 10 years ago

After installing using the default recipe the cassandra service fails to start. Upon closer inspection of the logs, it is throwing an exception.

My attributes:

default[:cassandra][:cluster_name] = 'ClusterName'
default[:cassandra][:version] = '2.1.2'
default[:cassandra][:package_name] = 'dsc21'
default[:cassandra][:setup_jamm] = true

Error:

Invalid yaml. Please remove properties [multithreaded_compaction, memtable_flush_queue_size, compaction_preheat_key_cache, in_memory_compaction_limit_in_mb] from your cassandra.yaml

Trace:

ERROR [main] 2014-11-19 04:45:53,433 DatabaseDescriptor.java:138 - Fatal configuration error
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml. Please remove properties [multithreaded_compaction, memtable_flush_queue_size, compaction_preheat_key_cache, in_memory_compaction_limit_in_mb] from your cassandra.yaml
        at org.apache.cassandra.config.YamlConfigurationLoader$MissingPropertiesChecker.check(YamlConfigurationLoader.java:162) ~[apache-cassandra-2.1.2.jar:2.1.2]
        at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:115) ~[apache-cassandra-2.1.2.jar:2.1.2]
        at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:84) ~[apache-cassandra-2.1.2.jar:2.1.2]
        at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:158) ~[apache-cassandra-2.1.2.jar:2.1.2]
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:133) ~[apache-cassandra-2.1.2.jar:2.1.2]
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:96) [apache-cassandra-2.1.2.jar:2.1.2]
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:448) [apache-cassandra-2.1.2.jar:2.1.2]
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:537) [apache-cassandra-2.1.2.jar:2.1.2]

Any ideas?

vkhatri commented 10 years ago

Looks like few parameters were deprecated in release v2.1.2. On Nov 19, 2014 10:26 AM, "Jonathan Hoskin" notifications@github.com wrote:

After installing using the default recipe the cassandra service fails to start. Upon closer inspection of the logs, it is throwing an exception.

My attributes:

default[:cassandra][:cluster_name] = 'ClusterName' default[:cassandra][:version] = '2.1.2' default[:cassandra][:package_name] = 'dsc21' default[:cassandra][:setup_jamm] = true

Error:

Invalid yaml. Please remove properties [multithreaded_compaction, memtable_flush_queue_size, compaction_preheat_key_cache, in_memory_compaction_limit_in_mb] from your cassandra.yaml

Trace:

ERROR [main] 2014-11-19 04:45:53,433 DatabaseDescriptor.java:138 - Fatal configuration error org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml. Please remove properties [multithreaded_compaction, memtable_flush_queue_size, compaction_preheat_key_cache, in_memory_compaction_limit_in_mb] from your cassandra.yaml at org.apache.cassandra.config.YamlConfigurationLoader$MissingPropertiesChecker.check(YamlConfigurationLoader.java:162) ~[apache-cassandra-2.1.2.jar:2.1.2] at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:115) ~[apache-cassandra-2.1.2.jar:2.1.2] at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:84) ~[apache-cassandra-2.1.2.jar:2.1.2] at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:158) ~[apache-cassandra-2.1.2.jar:2.1.2] at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:133) ~[apache-cassandra-2.1.2.jar:2.1.2] at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:96) [apache-cassandra-2.1.2.jar:2.1.2] at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:448) [apache-cassandra-2.1.2.jar:2.1.2] at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:537) [apache-cassandra-2.1.2.jar:2.1.2]

Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/michaelklishin/cassandra-chef-cookbook/issues/141.

jonathanhoskin commented 10 years ago

As an aside, I have it installing and running ok on a lower version for now:

default[:cassandra][:version] = '2.0.11'
default[:cassandra][:package_name] = 'dsc20'
default[:cassandra][:setup_jamm] = true
default[:cassandra][:vnodes] = 256
vkhatri commented 10 years ago

I have not gotten any time to look into this, I will try to work on it today. On Nov 27, 2014 3:34 AM, "Jonathan Hoskin" notifications@github.com wrote:

As an aside, I have it installing and running ok on a lower version for now:

default[:cassandra][:version] = '2.0.11' default[:cassandra][:package_name] = 'dsc20' default[:cassandra][:setup_jamm] = true default[:cassandra][:vnodes] = 256

— Reply to this email directly or view it on GitHub https://github.com/michaelklishin/cassandra-chef-cookbook/issues/141#issuecomment-64717279 .

13h3r commented 9 years ago

is this fixed already?

michaelklishin commented 9 years ago

I'm closing this as old, please re-open if this is still relevant.