Cassandra 1.1.1未能刪除列家族

[英]Cassandra 1.1.1 fails to drop columnfamily

csuser@lovelyserver01:~$ cqlsh --cql3 lovelyserver01
Connected to Lovely Cluster at lovelyserver01:9160.
[cqlsh 2.2.0 | Cassandra 1.1.1 | CQL spec 3.0.0 | Thrift protocol 19.32.0]
Use HELP for help.
cqlsh> CREATE KEYSPACE bigdata WITH strategy_class = 'SimpleStrategy' AND strategy_options:replication_factor=3;
cqlsh> USE bigdata;
cqlsh:bigdata> CREATE COLUMNFAMILY results (client_id int, hierarchy_id int, units int, measures int, PRIMARY KEY (client_id, hierarchy_id));

insert a few rows, anywhere from 5 to 5000 rows - nothing crazy. Then I realize I need to adjust the column family layout and reinsert all the data so I:

插入幾行,從5到5000行 - 沒什么了不起的。然后我意識到我需要調整列族布局並重新插入所有數據,所以我:

cqlsh:bigdata> DROP COLUMNFAMILY results;

This does nothing, no error, the column family still exists and I can still select data from that column family. I do it a few more times and then it seems to work.


Then when I try and recreate the column family, every time I get "TSocket read 0 bytes" and the cqlsh session becomes useless. If I delete the cassandra data directory on all nodes then I can recreate the keyspace and restart. Naturally this has made development rather slow going.


I have tried this on a cluster of 5 older laptops as well as 10 AWS EC2 instances.

我在5台舊筆記本電腦的集群以及10個AWS EC2實例上嘗試過此操作。

Initial tokens for each node is twice the value of the previous. The seed for each node is set up to be the first node. Commitlog is on the same device. I am using the hostname for the listen_address and rpc_address.

每個節點的初始令牌是前一個節點的兩倍。每個節點的種子被設置為第一個節點。 Commitlog在同一台設備上。我使用的是listen_address和rpc_address的主機名。

Anyone know what the issue may be?


2 个解决方案



A combination of:


  • updating to cassandra 1.1.2 (from 1.1.1)
  • 更新到cassandra 1.1.2(從1.1.1開始)

  • installing NTP on all nodes
  • 在所有節點上安裝NTP

  • upgrading the file system to ext4 (from ext3)
  • 將文件系統升級到ext4(來自ext3)

has fixed this issue.




Seems like editing that file '' did not fix the issue.


I have to delete the data on all machines to recreate a column family. This is highly annoying.




粤ICP备14056181号  © 2014-2020