I Have modified the TestProfile.yaml as per the exercise DS210 : Configure and run cassandrastress exercise. Please find the below Testprofile.yaml file on ds210-node2 as below for your reference:
ubuntu@ds210-node2:/etc/dse/cassandra$ cat /home/ubuntu/labwork/TestProfile.yaml # # Keyspace Name # keyspace: killrvideo keyspace_definition: | CREATE KEYSPACE killrvideo WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; # # Table name and create CQL # table: user_by_email table_definition: | CREATE TABLE user_by_email ( email text, password text, user_id uuid, PRIMARY KEY((email)) ) # # Meta information for generating data # columnspec: - name: email size: gaussian(8..30) population: uniform(1..1234) - name: password size: exp(8..30) population: uniform(1..1432) - name: user_id size: fixed(4) population: unifrom(1..1567) # # Specs for insert queries # insert: partitions: fixed(1) select: fixed(1)/1 batchtype: UNLOGGED # use unlogged batches # # Read queries to run against the schema # queries: user_by_email : cql: select * from user_by_email where email = ? fields: samerow
But when Iam trying to execute the Cassandra stress from Node2(ds210-node2) using below command it is not running, output of the command as below:
ubuntu@ds210-node2:/etc/dse/cassandra$ cassandra-stress user profile=/home/ubuntu/labwork/TestProfile.yaml ops\(insert=4,user_by_email=4\) -node 172.18.0.2 Illegal distribution type: unifrom Usage: cassandra-stress <command> [options] Help usage: cassandra-stress help <command> ---Commands--- read : Multiple concurrent reads - the cluster must first be populated by a write test write : Multiple concurrent writes against the cluster mixed : Interleaving of any basic commands, with configurable ratio and distribution - the cluster must first be populated by a write test counter_write : Multiple concurrent updates of counters. counter_read : Multiple concurrent reads of counters. The cluster must first be populated by a counterwrite test. user : Interleaving of user provided queries, with configurable ratio and distribution help : Print help for a command or option print : Inspect the output of a distribution definition legacy : Legacy support mode version : Print the version of cassandra stress ---Options--- -pop : Population distribution and intra-partition visit order -insert : Insert specific options relating to various methods for batching and splitting partition updates -col : Column details such as size and count distribution, data generator, names, comparator and if super columns should be used -rate : Thread count, rate limit or automatic mode (default is auto) -mode : CQL mode options -errors : How to handle errors when encountered during stress -schema : Replication settings, compression, compaction, etc. -node : Nodes to connect to -log : Where to log progress to, and the interval at which to do it -transport : Custom transport factories -port : The port to connect to cassandra nodes on -sendto : Specify a stress server to send this command to -graph : Graph recorded metrics -tokenrange : Token range settings