2013-03-01 15 views
2

我無法在cassandra中運行COPY命令。下面是我使用複製命令在Cassandra中不起作用

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命令的ColumnFamily:

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';
錯誤的請求:無效的 STRING常量(1)用於int類型的ap_proto
在記錄#0(第1行)中取消導入 。
以前插入的值仍存在 。
以0.008秒導入0行。
cqlsh:performance_data>

「/ TMP /頂部」 的

內容


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連接到測試集羣 localhost:9160。 [cqlsh 2.3.0 | Cassandra 1.2.2 | CQL規範3.0.0 | Thrift協議19.35.0]使用幫助尋求幫助。

任何線索,爲什麼這可能發生將不勝感激。

回答

2

錯誤#5305在1.2.2 Cassandra中提出此問題。

+0

鏈接到傑拉票:https://issues.apache.org/jira/browse/CASSANDRA-5305 – stakolee 2013-03-15 15:15:34