DSE 5.1.10表没有列。.重新启动错误

时间:2018-09-04 11:55:56

标签: cassandra datastax datastax-enterprise

cassandra重新启动时遇到错误。

  

错误[主要] 2018-09-04 03:04:53,490 CassandraDaemon.java:723-   启动期间遇到异常   org.apache.cassandra.schema.SchemaKeyspace $ MissingColumns:列不   在架构表中找到test.test1          在org.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)          在org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:263)          在com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:481)          在org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:617)          在com.datastax.bdp.DseModule.main(DseModule.java:93)

注意:未创建此表。

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

2 个答案:

答案 0 :(得分:0)

运行滚动重启,以确保架构在节点之间匹配。在检查完只有一个架构版本之后。

答案 1 :(得分:0)

试试这一步,这基本上是通过忽略损坏的模式暂时启动 Cassandra

cassandra -Dcassandra.ignore_corrupted_schema_tables=true