启动期间遇到异常-清空cassandra.yaml文件

时间:2019-01-09 14:31:37

标签: cassandra-2.1

Am使用Cassandra 2.1.13 作为C *实际启动且C *启动过程尚未完成的部分执行操作,在此操作过程中,计算机重新启动了。 奇怪的是,稍后检查并看到以下异常时,会清空C *配置文件cassandra.yaml。

是因为清空的conf文件cassandra.yaml没有内容,还是以下异常导致清空cassandra.yaml文件?

ERROR [main] DatabaseDescriptor.java:147 - Fatal error during configuration loading
java.lang.NullPointerException: null
        at java.util.TreeMap.putAll(TreeMap.java:313) ~[na:1.8.0_172]
        at java.util.TreeMap.<init>(TreeMap.java:185) ~[na:1.8.0_172]
        at org.apache.cassandra.config.YamlConfigurationLoader.logConfig(YamlConfigurationLoader.java:126) ~[apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:104) ~[apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:84) ~[apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:161) ~[apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:136) ~[apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:168) [apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:564) [apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:653) [apache-cassandra-2.1.13.jar:2.1.13]
ERROR [main] CassandraDaemon.java:581 - Exception encountered during startup
java.lang.ExceptionInInitializerError: null
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:168) [apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:564) [apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:653) [apache-cassandra-2.1.13.jar:2.1.13]
Caused by: java.lang.NullPointerException: null
        at org.apache.cassandra.config.DatabaseDescriptor.getDiskFailurePolicy(DatabaseDescriptor.java:1347) ~[apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable(JVMStabilityInspector.java:58) ~[apache-cassandra-2.1.13.jar:2.1.13]
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:149) ~[apache-cassandra-2.1.13.jar:2.1.13]
        ... 3 common frames omitted

任何人都可以帮助我找到此问题的根本原因吗?如果您需要更多详细信息,请告诉我。

谢谢!

1 个答案:

答案 0 :(得分:0)

您是否从标准配置文件中验证了cassandra.yaml filr,而没有进行任何更改?似乎有些语法错误。