3

使用 sstableloader 批量加载时出现异常。我正在使用 JDK 1.6.0_25 64 位、Ubuntu 12.04 服务器。IPv6 已关闭。主机之间的网络通信正常工作。我要疯了 ;-(

Exception in thread "Streaming to /192.168.219.36:1" java.lang.RuntimeException: java.net.SocketException: Invalid argument or cannot assign requested address
    at org.apache.cassandra.utils.FBUtilities.unchecked(FBUtilities.java:628)
    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketException: Invalid argument or cannot assign requested address
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:276)
    at org.apache.cassandra.net.OutboundTcpConnectionPool.newSocket(OutboundTcpConnectionPool.java:96)
    at org.apache.cassandra.streaming.FileStreamTask.connectAttempt(FileStreamTask.java:245)
    at org.apache.cassandra.streaming.FileStreamTask.runMayThrow(FileStreamTask.java:91)
    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)

所有主机都运行 Cassandra 1.1(datastax 版)。端口 7000,7199,9160 已打开。有任何想法吗 ??

4

1 回答 1

0

为什么要流式传输到端口 1?它应该是 RPC_PORT,默认值为 9160。

/192.168.219.36:1 _

你传递给bulkloader的参数是什么?

于 2013-11-18T18:27:02.473 回答