sstableloader连接拒绝,但可以通过cqlsh连接

时间:2014-06-19 05:30:06

标签: cassandra

我正在尝试连接到远程服务器但获得以下异常.... 不知何故,似乎cassandra无法连接到每个节点...

user$ sstableloader -d 192.168.33.11  /usr/local/var/lib/cassandra/data/moomin/hoahoa2/
Streaming revelant part of /usr/local/var/lib/cassandra/data/moomin/hoahoa2/moomin-hoahoa2-hf-37-Data.db /usr/local/var/lib/cassandra/data/moomin/hoahoa2/moomin-hoahoa2-hf-62-Data.db /usr/local/var/lib/cassandra/data/moomin/hoahoa2/moomin-hoahoa2-hf-63-Data.db to [/192.168.33.12, /192.168.33.11]

progress: [/192.168.33.12 0/3 (0)] [/192.168.33.11 0/3 (0)] [total: 0 - 0MB/s (avg: 0MB/s)] WARN 13:57:59,232 Failed attempt 1 to connect to /192.168.33.12 to stream /usr/local/var/lib/cassandra/data/moomin/hoahoa2/moomin-hoahoa2-hf-63-Data.db sections=1 progress=0/302778 - 0%. Retrying in 4000 ms. (java.net.ConnectException: Connection refused)
 WARN 13:57:59,232 Failed attempt 1 to connect to /192.168.33.11 to stream /usr/local/var/lib/cassandra/data/moomin/hoahoa2/moomin-hoahoa2-hf-63-Data.db sections=1 progress=0/294966 - 0%. Retrying in 4000 ms. (java.net.ConnectException: Connection refused)
progress: [/192.168.33.12 0/3 (0)] [/192.168.33.11 0/3 (0)] [total: 0 - 0MB/

[1]通过cqlsh,我可以顺利连接到任一节点。

[2]每个节点中的cassandra.yaml文件都有rpc_address:0.0.0.0

有人可以给我建议吗?

1 个答案:

答案 0 :(得分:0)

好吧,我终于明白了,每个节点的cassandra版本都不相同,这会导致java.net.ConnectionException错误。所以我要做的就是确保每个节点的cassandra版本相同。

如果cassandra版本相同,则java版本不必相同。