sstableloader不传输数据,并参考weirf端口

时间:2014-06-27 08:20:35

标签: cassandra bulkloader

我想将我的cassandra数据从节点A批量加载到节点B.

当我设置' listen_address '每个 cassandra.yaml 文件到localhost, 它们不会在控制台上显示错误,但数据永远不会传输。

当我将每个节点的监听地址设置为他们自己的本地网络[eth1 ipv4]地址(192.168 ....)时,我收到以下错误。

我可以从此错误日志中读取应用程序正在尝试访问端口1..4 我不知道到底发生了什么。

每个节点都位于Virtual Box Hypervisor上的虚拟机上。两个OS都是centOS。

[vagrant@localhost conf]$ ../bin/sstableloader   -v -d 192.168.33.12  -p 9160 /db/data/m
oomin/hoahoa2/                                                                          
Streaming revelant part of /db/data/moomin/hoahoa2/moomin-hoahoa2-hf-69-Data.db to [/192.168.33.12]

progress: [/192.168.33.12 0/1 (0)] [total: 0 - 0MB/s (avg: 0MB/s)] WARN 16:55:42,655 Failed attempt 1 to connect to /192.168.33.12 to stream /db/data/moomin/hoahoa2/moomin-hoahoa2-h
f-69-Data.db sections=1 progress=0/378000000 - 0%. Retrying in 4000 ms. (java.net.SocketException: Invalid argument or cannot assign requested address)
progress: [/192.168.33.12 0/1 (0)] [total: 0 - 0MB/s (avg: 0MB/s)] WARN 16:55:46,658 Failed attempt 2 to connect to /192.168.33.12 to stream /db/data/moomin/hoahoa2/moomin-hoahoa2-h
f-69-Data.db sections=1 progress=0/378000000 - 0%. Retrying in 8000 ms. (java.net.SocketException: Invalid argument or cannot assign requested address)
progress: [/192.168.33.12 0/1 (0)] [total: 0 - 0MB/s (avg: 0MB/s)] WARN 16:55:54,666 Failed attempt 3 to connect to /192.168.33.12 to stream /db/data/moomin/hoahoa2/moomin-hoahoa2-h
f-69-Data.db sections=1 progress=0/378000000 - 0%. Retrying in 16000 ms. (java.net.SocketException: Invalid argument or cannot assign requested address)
progress: [/192.168.33.12 0/1 (0)] [total: 0 - 0MB/s (avg: 0MB/s)]

这是我的cassandra.yaml(目标文件的cassandra.yaml也以相同的方式配置)

# communicate!
#
# Leaving it blank leaves it up to InetAddress.getLocalHost(). This
# will always do the Right Thing *if* the node is properly configured
# (hostname, name resolution, etc), and the Right Thing is to use the
# address associated with the hostname (it might not be).
#
# Setting this to 0.0.0.0 is always wrong.
listen_address: 192.168.33.12
#listen_address: localhost  
rpc_address: 0.0.0.0
# port for Thrift to listen for clients on
rpc_port: 9160

# enable or disable keepalive on rpc connections
rpc_keepalive: true

rpc_server_type: sync

thrift_framed_transport_size_in_mb: 15

thrift_max_message_length_in_mb:16

incremental_backups: false

snapshot_before_compaction: false

auto_snapshot: true

column_index_size_in_kb: 64

in_memory_compaction_limit_in_mb: 64

multithreaded_compaction: false

compaction_throughput_mb_per_sec: 16

compaction_preheat_key_cache: true

rpc_timeout_in_ms: 10000

endpoint_snitch: org.apache.cassandra.locator.PropertyFileSnitch

dynamic_snitch_update_interval_in_ms: 100
dynamic_snitch_reset_interval_in_ms: 600000
dynamic_snitch_badness_threshold: 0.1

request_scheduler: org.apache.cassandra.scheduler.NoScheduler


emory usage without a impact on performance.
index_interval: 128

有人可以给我建议吗?我真的很痛苦。

0 个答案:

没有答案