cassandra重启时面临错误 .
ERROR [main] 2018-09-04 03:04:53,490 CassandraDaemon.java:723 - 启动时遇到的异常org.apache.cassandra.schema.SchemaKeyspace $ MissingColumns:org中test.test1的架构表中找不到的列 . apache.cassandra.schema.SchemaKeyspace.fetchColumns(SchemaKeyspace.java:1120)org.apache.cassandra.schema.SchemaKeyspace.fetchTable(SchemaKeyspace.java:1066)org.apache.cassandra.schema.SchemaKeyspace.fetchTables(SchemaKeyspace . java:1009)org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:963)org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:940)org.apache.cassandra.schema .schemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:928)org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:93)org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:83)at at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:263)at com.datastax.bdp.server.DseDaemon.setup(DseDaem) on.java:481)atg.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:617)at com.datastax.bdp.DseModule.main(DseModule.java:93)
Note: 此表未创建 .
user@cqlsh:test> desc test1 ;
CREATE TABLE test.test1 (
) WITH bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
user@cqlsh:test> DROP TABLE test.test1;
InvalidRequest: Error from server: code=2200 [Invalid query] message="unconfigured table test1"
user@cqlsh:test>
user@cqlsh:test> SELECT * from test.test1;
InvalidRequest: Error from server: code=2200 [Invalid query] message="unconfigured table test1"
多个表发生此问题 . 某些表在 system_schema.tables
中不可用 .
DSE 5.1.10
1 回答
运行滚动重新启动以确保模式跨节点匹配 . 检查后只有一个模式版本 .