0

我正在尝试使用 YCSB 工具将数据加载到 cassandra 多节点设置中,使用以下命令。

./ycsb  load cassandra-10 -P ../workloads/workloadb -s 

但我得到以下输出。
我将 hosts 参数作为服务器的 IP 地址放入工作负载中。

PS我能够成功创建多节点设置并使用表'data'创建数据库'usertable'

2014-12-02 02:55:25:013 0 sec: 0 operations; 
2014-12-02 02:55:35:014 10 sec: 0 operations; 
2014-12-02 02:55:45:015 20 sec: 0 operations; 
2014-12-02 02:55:55:016 30 sec: 0 operations; 
2014-12-02 02:56:05:017 40 sec: 0 operations; 
2014-12-02 02:56:15:018 50 sec: 0 operations; 
2014-12-02 02:56:25:019 60 sec: 0 operations; 
2014-12-02 02:56:35:020 70 sec: 0 operations; 
2014-12-02 02:56:45:020 80 sec: 0 operations; 
2014-12-02 02:56:55:021 90 sec: 0 operations; 
2014-12-02 02:57:05:023 100 sec: 0 operations; 
2014-12-02 02:57:15:024 110 sec: 0 operations; 
2014-12-02 02:57:25:024 120 sec: 0 operations; 
2014-12-02 02:57:35:025 130 sec: 0 operations;
4

1 回答 1

0
    /root/ycsb-0.1.4/bin/ycsb load cassandra-10 -p hosts="<ip1> <ip2> <ip3> .." -p port=9160 -p recordcount=1000000 -P /root/ycsb-0.1.4/workloads/workloada -s

您需要将所有种子节点的 IP 地址放入您在 yaml 文件中提供的主机参数中。

于 2015-04-07T05:04:28.460 回答