I couldn't find cassandra-stress in the tools folder.
$ cassandra-stress write n=100000 /bin/sh: 1: cassandra-stress: not found
I couldn't find cassandra-stress in the tools folder.
$ cassandra-stress write n=100000 /bin/sh: 1: cassandra-stress: not found
The cassandra-stress
utility is located in resources/cassandra/tools/bin
with the other tools:
$ ls -1 resources/cassandra/tools/bin/ cassandra.in.sh cassandra-stress cassandra-stressd compaction-stress disk_cal.py hash_password sstabledump sstableexpiredblockers sstablelevelreset sstablemetadata sstableofflinerelevel sstablepartitions sstablepkrewriter sstablerepairedset sstablesplit token-generator
Here's an example run:
$ resources/cassandra/tools/bin/cassandra-stress write n=1 ******************** Stress Settings ******************** ... Connected to cluster: Test Cluster, max pending requests per connection 128, max connections per host 8 Datacenter: dc1; Host: localhost/127.0.0.1; Rack: rack1 Created keyspaces. Sleeping 1s for propagation. Sleeping 2s... Warming up WRITE with 0 iterations... Running WRITE with 200 threads for 1 iteration type total ops, op/s, pk/s, row/s, mean, med, .95, .99, .999, max, time, stderr, errors, gc: #, max ms, sum ms, sdv ms, mb total, 1, 5, 5, 5, 23.650, 23.658, 23.658, 23.658, 23.66, 23.7, 0.2, 0.00000, 0, 0, 0, 0, 0, 0 Results: Op rate : 5 op/s [WRITE: 5 op/s] Partition rate : 5 pk/s [WRITE: 5 pk/s] Row rate : 5 row/s [WRITE: 5 row/s] Latency mean : 23.650 ms [WRITE: 23.7 ms] Latency median : 23.658 ms [WRITE: 23.7 ms] Latency 95th percentile : 23.658 ms [WRITE: 23.7 ms] Latency 99th percentile : 23.658 ms [WRITE: 23.7 ms] Latency 99.9th percentile : 23.658 ms [WRITE: 23.7 ms] Latency max : 23.658 ms [WRITE: 23.7 ms] Total partitions : 1 [WRITE: 1] Total errors : 0 [WRITE: 0] Total GC count : 0 Total GC memory : 0.000 KiB Total GC time : 0.0 seconds Avg GC time : NaN ms StdDev GC time : 0.0 ms Total operation time : 00:00:00 END
Cheers!
6 People are following this question.
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use