0
Cassandra寫入表緩慢(寫入延遲爲每插入38毫秒)。我試圖找出爲什麼通過追蹤。但是,我得到這個錯誤,我不明白。請注意插入本身確實成功。我使用卡桑德拉1.2.5跟蹤錯誤「對象不可迭代」
Error: 'NoneType' object is not iterable
這裏是插入:
insert into table1(col1, col2, col3,
col15, col6, col11,
col12, col13, col14,
col7,col8, col10,
col9, col4, col5)
values (6000000, 1, 'name_1', 'name_alias_1',
false,false, 676, 59455,
'REG', 'ADM', 'CRT', 'AST',
{'1000000001', '1000000002', '1000000003', '1000000004'},
'2013-06-26 19:44:36', '2013-06-26 19:44:36');
,這裏是表說明:
CREATE TABLE table1 (
col1 bigint,
col2 bigint,
col3 text,
col4 timestamp,
col5 timestamp,
col6 boolean,
col7 text,
col8 text,
col9 set<text>,
col10 text,
col11 boolean,
col12 bigint,
col13 int,
col14 text,
col15 text
PRIMARY KEY (col1, col2)
) 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'};
你能顯示你正在運行的命令給出那個錯誤嗎?此外,請確保您使用的是Cassandra 1.2.5附帶的cqlsh版本,而不是其他版本。 – Zanson
我使用的是發行版附帶的cqlsh版本。 – Ravi
這是我跑的命令:跟蹤;插入到表1(COL1,COL2,COL3, col15,COL6,col11, COL12,col13,col14, COL7,col8,col10, col9,COL4,COL5) 值(6000000,1, 'NAME_1',' name'alias_1', false,false,676,59455, 'REG','ADM','CRT','AST', {'1000000001','1000000002','1000000003','1000000004'}, ' 2013-06-26 19:44:36','2013-06-26 19:44:36'); – Ravi