问题描述
我尝试使用cassandra应力工具在3节点群集上填充一些数据。我试图运行casssandra压力多次,但我有低于错误。有人可以告诉我什么是错的。
I am trying to populate some data using cassandra stress tool on a 3 node cluster. I tried to run the casssandra stress multiple times but I got below error. can someone suggest me what is wrong.
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:Connection拒绝
在org.apache.thrift.transport.TSocket.open(TSocket.java: 187)
at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81)
at org.apache.cassandra.thrift.TFramedTransportFactory.openTransport(TFramedTransportFactory.java:41)
at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:124)
... 6个
Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused at org.apache.thrift.transport.TSocket.open(TSocket.java:187) at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81) at org.apache.cassandra.thrift.TFramedTransportFactory.openTransport(TFramedTransportFactory.java:41) at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:124) ... 6 more
推荐答案
我也面临同样的问题。要解决它,我再加一个参数-node
I was also facing the same issue. To solve it, I added one more argument "-node "
所以我的cassandra压力命令变成如下:
So my cassandra-stress command became as follows:
cassandra-stress write n=50000 -rate threads=40 -node d0.cass.org
其中d0.cass.org是集群中某个节点的主机名。
Where d0.cass.org is the hostname of one of the nodes in the cluster.
这篇关于在Cassandra上使用cassandra应力时,拒绝连接拒绝错误2.1软件包安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!