I wasn't able to find any concrete examples of folks running cassandra-stress
against TLS + auth enabled cassandra clusters;
this gist hopefully fulfills that.
- 3 node C* setup w/ lucene running on instaclustr
- TLS Enabled
- Auth Enabled
- Download the certificate archive from instaclustr
- The archive will contain a
keystore.jks
file; place it wherever you're runningcassandra-stress
from - Download and extract latest C* release
cd ddac-*/tools/bin
$ ./cassandra-stress write duration=10s cl=one no-warmup -mode native cql3 user=your-username password=your-password protocolVersion=4 -transport factory=org.apache.cassandra.thrift.SSLTransportFactory truststore=/root/cassandra-testing/keystore.jks truststore-password=instaclustr -node 10.1.2.3 -port jmx=9042
As far as I can tell, there is no way to disable JMX stats collection in cassandra-stress
. So rather than waiting for 30+
seconds for the timeout, you can cause the JMX stats collection to fail quickly by specifying an open, non-JMX port (via
-port jmx=9042
).
You must specifiy a specific protocol version: -mode native cql3 user=... pass=... protocolVersion=4
.