复制命令在Cassandra中不起作用

时间:2013-03-01 11:55:08

标签: cassandra

我无法在cassandra中运行COPY命令。这是我正在使用的ColumnFamily

CREATE TABLE ap_perf_sample_data_tbl(
ap_mac varchar,
ap_proto int,
stime int,
ap_active_status int,
bytes_from_dev int,
bytes_to_dev int,
location_id int,
num_assocs int,
num_data_pkts int,
num_retry_pkts int,
throughput_from_ap int,
throughput_to_ap int,
throughput_total_ap int,
time_spent_on_channel int,
time_util_by_ap int,
PRIMARY KEY ((ap_mac, ap_proto), stime)

我正在尝试在cqlsh中使用COPY命令,如下所示:

  

cqlsh:performance_data> 复制ap_perf_sample_data_tbl (ap_mac,   ap_proto,stime,location_id,num_data_pkts,num_retry_pkts,   num_assocs,time_util_by_ap,time_spent_on_channel,throughput_to_ap,   throughput_from_ap,throughput_total_ap,bytes_to_dev,bytes_from_dev   ,'ap_active_status)来自' / tmp / top';
错误请求:无效   对于类型为int的ap_proto,STRING为常量(1)中止导入   记录#0(第1行)。
以前插入的值仍然存在   在.078秒内导入0行   cqlsh:performance_data>

     

“/ tmp / top”的内容


  

00:00:01:00:01:00,1,1359532800,1,6002166,312781,10,845100,9045000,259143,241011,52835,186318,5413799,10   00:00:02:00:02:00,1,1359532800,2,6002166,312781,10,845100,9045000,259143,241011,52835,186318,5413799,10   00:00:03:00:03:00,1,1359532800,3,6002166,312781,10,845100,9045000,259143,241011,52835,186318,5413799,10   00:00:04:00:04:00,1,1359532800,4,6002166,312781,10,845100,9045000,259143,241011,52835,186318,5413799,10


以下是版本信息。

  

[root @ localhost~] #cqlsh连接到Test Cluster at   本地主机:9160。 [cqlsh 2.3.0 | Cassandra 1.2.2 | CQL规范3.0.0 |   节俭协议19.35.0]使用HELP寻求帮助。

有关为何可能发生这种情况的任何线索将不胜感激。

1 个答案:

答案 0 :(得分:2)

Bug#5305在1.2.2 Cassandra中提交此问题。

相关问题