以org.apache.cassandra.exceptions.ConfigurationException启动Cassandra时出现新错误:选项'speculative_retry'的无效值?? PERCENTILE
我正在Windows 10 Pro上使用apache cassandra 3.11.2。请让我知道是否有任何可能的解决方案。
Exception (org.apache.cassandra.exceptions.ConfigurationException) encountered during startup: Invalid value ??PERCENTILE for option 'speculative_retry'
org.apache.cassandra.exceptions.ConfigurationException: Invalid value ??PERCENTILE for option 'speculative_retry'
at org.apache.cassandra.schema.SpeculativeRetryParam.fromString(SpeculativeRetryParam.java:113)
at org.apache.cassandra.schema.SchemaKeyspace.createTableParamsFromRow(SchemaKeyspace.java:1082)
at org.apache.cassandra.schema.SchemaKeyspace.fetchTable(SchemaKeyspace.java:1059)
at org.apache.cassandra.schema.SchemaKeyspace.fetchTables(SchemaKeyspace.java:998)
at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:957)
at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:934)
at org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:922)
at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:92)
at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:82)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:262)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:602)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:691)
ERROR [main] 2019-07-02 14:47:39,401 CassandraDaemon.java:708 - Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid value ??PERCENTILE for option 'speculative_retry'
at org.apache.cassandra.schema.SpeculativeRetryParam.fromString(SpeculativeRetryParam.java:113) ~[apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.schema.SchemaKeyspace.createTableParamsFromRow(SchemaKeyspace.java:1082) ~[apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.schema.SchemaKeyspace.fetchTable(SchemaKeyspace.java:1059) ~[apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.schema.SchemaKeyspace.fetchTables(SchemaKeyspace.java:998) ~[apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:957) ~[apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:934) ~[apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:922) ~[apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:92) ~[apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:82) ~[apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:262) [apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:602) [apache-cassandra-3.11.2.jar:3.11.2]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:691) [apache-cassandra-3.11.2.jar:3.11.2]
答案 0 :(得分:1)
您已在表创建语句中定义了speculative_retry,该方式与所需格式不匹配。
可接受的示例格式(如果为数字,则必须在0.0到100.0之间):
AND speculative_retry = '99.0PERCENTILE';
OR
AND speculative_retry = 'NONE';
检查为架构中的表配置的内容。