卡珊德拉| CQL |使用SELECT QUERY显示未配置的columnfamily错误

时间:2015-03-23 08:32:33

标签: cassandra cql3 cqlsh

我正在尝试创建我的第一个表,并在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

1 个答案:

答案 0 :(得分:2)

错误?:CF创建为inlucde_authors,但您请求include_authors。仔细阅读:inLUCde< - >包括