CassJMeter icon indicating copy to clipboard operation
CassJMeter copied to clipboard

JMeter failed to connect to Cassandra

Open jeffrngu opened this issue 11 years ago • 1 comments

Hi, I'm running JMeter 2.10. I installed the latest version of CassJMeter but having problem connecting to my Cassandra DB. I'm getting ConnectException below. Any pointer would be much appreciated.

What other ways do people use to connect Cassandra from JMeter?

In the CassandraProperties config entry, I have the following:

cassandraServers: :9160 clientType:com.netflix.jmeter.connections.thrift.ThriftConnection clusterName:Test Cluster keyspace: maxConnsPerHost:100 readConsistency:ONE

ERROR: java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused com.netflix.jmeter.utils.CClient.getClient(CClient.java:33) com.netflix.jmeter.connections.thrift.ThriftConnection$1.initialValue(ThriftConnection.java:24) com.netflix.jmeter.connections.thrift.ThriftConnection$1.initialValue(ThriftConnection.java:18) java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:160) java.lang.ThreadLocal.get(ThreadLocal.java:150) com.netflix.jmeter.connections.thrift.ThriftConnection.newOperation(ThriftConnection.java:40) com.netflix.jmeter.sampler.GetSampler.execute(GetSampler.java:9) com.netflix.jmeter.sampler.AbstractSampler.sample(AbstractSampler.java:205) org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429) org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257) java.lang.Thread.run(Thread.java:744)

Thanks, -Jeffrey

jeffrngu avatar Nov 22 '13 22:11 jeffrngu

Jeffrey, I am trying to connect to Cassandra DB and getting the same error message. Were you able to fix or figure out how to overcome this issue? It would be great if you can share any info. Thanks!

manit-sidhu avatar Jan 29 '16 19:01 manit-sidhu