由于错误而导致cassandra节点无法启动[main] 2018-01-09 04:08:58,733 CassandraDaemon.java:705 - 启动时遇到异常

时间:2018-01-09 10:52:45

标签: cassandra cassandra-3.0

Cassandra节点未启动并抛出以下异常。

org.apache.cassandra.exceptions.InvalidRequestException: Unknown type datakeyspace.identificationtype
    at org.apache.cassandra.cql3.CQL3Type$Raw$RawUT.prepare(CQL3Type.java:768) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.cql3.CQL3Type$Raw.prepareInternal(CQL3Type.java:537) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.schema.Types$RawBuilder$RawUDT.lambda$prepare$2(Types.java:313) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[na:1.8.0_112]
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) ~[na:1.8.0_112]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_112]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_112]
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_112]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_112]
    at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_112]
    at org.apache.cassandra.schema.Types$RawBuilder$RawUDT.prepare(Types.java:314) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.schema.Types$RawBuilder.build(Types.java:263) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.schema.SchemaKeyspace.fetchTypes(SchemaKeyspace.java:979) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:950) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:928) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:916) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:91) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:81) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:262) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:476) ~[dse-core-5.1.5.jar:5.1.5]
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:599) ~[cassandra-all-3.11.0.1900.jar:3.11.0.1900]
    at com.datastax.bdp.DseModule.main(DseModule.java:93) [dse-core-5.1.5.jar:5.1.5]

1 个答案:

答案 0 :(得分:0)

当system_schema中的类型定义损坏时,会发生这种情况。通过将类型定义从运行状况良好的节点复制到故障节点,可以解决该问题。您将在Cassandra数据文件夹中找到模式类型:<cassandra>/data/system_schema/types-*

问题已在此处列出:https://issues.apache.org/jira/browse/CASSANDRA-13739