【问题标题】:Cassandra | CQL | show unconfigured columnfamily error with SELECT QUERY卡桑德拉 | CQL |使用 SELECT QUERY 显示未配置的列族错误
【发布时间】:2015-05-26 04:32:02
【问题描述】:

我正在尝试创建我的第一个表并在 Cassandra 1.2.15 下使用 CQL 3 对其进行查询。我的问题是为什么它为我现有的表显示 unconfigured columnfamily 错误。该问题的一些答案是在表名周围添加双引号,但对我不起作用。尽可能显示更多信息。

Connected to dev Test Cluster at localhost:9160.
[cqlsh 3.1.8 | Cassandra 1.2.15 | CQL spec 3.0.0 | Thrift protocol 19.36.2]
Use HELP for help.
cqlsh> describe keyspace cb_theme_authors

CREATE KEYSPACE cb_theme_authors WITH replication = {
  'class': 'SimpleStrategy',
  'replication_factor': '1'
};

USE cb_theme_authors;

CREATE TABLE inlucde_authors (
  authorid text,
  themeid text,
  domain text,
  PRIMARY KEY (authorid, themeid, domain)
) WITH
  bloom_filter_fp_chance=0.010000 AND
  caching='KEYS_ONLY' AND
  comment='' AND
  dclocal_read_repair_chance=0.000000 AND
  gc_grace_seconds=864000 AND
  read_repair_chance=0.100000 AND
  replicate_on_write='true' AND
  populate_io_cache_on_flush='false' AND
  compaction={'class': 'SizeTieredCompactionStrategy'} AND
  compression={'sstable_compression': 'SnappyCompressor'};

cqlsh>
cqlsh>
cqlsh>
cqlsh> use cb_theme_authors;
cqlsh:cb_theme_authors> SELECT * FROM "include_authors";
Bad Request: unconfigured columnfamily include_authors

【问题讨论】:

    标签: cassandra cql3 cqlsh


    【解决方案1】:

    typo?: CF 被创建为 inlucde_authors 但您请求 include_authors。仔细阅读:inLUCde inCLUde

    【讨论】:

      猜你喜欢
      • 2013-08-17
      • 1970-01-01
      • 2013-03-08
      • 2016-06-15
      • 2015-10-19
      • 2015-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多