在cassandra上使用cassandra-stress时出现连接拒绝错误2.1软件包安装

时间:2015-08-18 05:09:45

标签: cassandra

我试图在3节点集群上使用cassandra压力工具填充一些数据。我试图多次运行casssandra压力,但我得到了以下错误。谁能告诉我什么是错的。

enter code here`Exception in thread "main" java.lang.RuntimeException:     org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused
at   org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144)
at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110)
at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111)
at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59)
at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205)
at org.apache.cassandra.stress.StressAction.run(StressAction.java:55)
at org.apache.cassandra.stress.Stress.main(Stress.java:109)

引起:org.apache.thrift.transport.TTransportException:java.net.ConnectException:连接被拒绝     在org.apache.thrift.transport.TSocket.open(TSocket.java:187)     在org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81)     在org.apache.cassandra.thrift.TFramedTransportFactory.openTransport(TFramedTransportFactory.java:41)     在org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:124)     ......还有6个

1 个答案:

答案 0 :(得分:1)

我也面临同样的问题。为了解决这个问题,我又添加了一个参数" -node"

所以我的cassandra-stress命令变成如下:

cd ~
sudo rm -R .git

其中d0.cass.org是群集中某个节点的主机名。