Only the below profiles got created.
******************** Profile(s) ******************** Keyspace Name: stresscql Keyspace CQL: *** CREATE KEYSPACE stresscql WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; *** Table Name: blogposts Table CQL: *** CREATE TABLE blogposts ( domain text, published_date timeuuid, url text, author text, title text, body text, PRIMARY KEY(domain, published_date) ) WITH CLUSTERING ORDER BY (published_date DESC) AND compaction = { 'class':'LeveledCompactionStrategy' } AND comment='A table to hold blog posts' ***
Why my profile is not created ?
run command
root@ds210-node2:/home/ubuntu/labwork# cassandra-stress user profile=/home/ubuntu/labwork/TestProfile.yaml ops\(insert=4,user_by_email=4\) -node ds210-node1
Cassandra-stress yaml file:
root@ds210-node2:/home/ubuntu/labwork# root@ds210-node2:/home/ubuntu/labwork# cat /home/ubuntu/labwork/TestProfile.yaml # # Keyspace Name # keyspace: killr_video keyspace_definition: | CREATE KEYSPACE killr_video 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)) ) # # Keyspace Name # keyspace: stresscql keyspace_definition: | CREATE KEYSPACE stresscql WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; # # Table name and create CQL # table: blogposts table_definition: | CREATE TABLE blogposts ( domain text, published_date timeuuid, url text, author text, title text, body text, PRIMARY KEY(domain, published_date) ) WITH CLUSTERING ORDER BY (published_date DESC) AND compaction = { 'class':'LeveledCompactionStrategy' } AND comment='A table to hold blog posts' # # Meta information for generating data # columnspec: - name: email size: gaussian(8..30) population: exp(1..1234) - name: password size: exp(8..30) population: uniform(1..1432) - name: user_id size: fixed(4) population: uniform(1..1567) columnspec: - name: domain size: gaussian(5..100) population: uniform(1..10M) - name: published_date cluster: fixed(1000) - name: url size: uniform(30..300) - name: title size: gaussian(10..200) - name: author size: uniform(5..20) - name: body size: gaussian(100..5000) # # Specs for insert queries # insert: partitions: fixed(1) batchtype: UNLOGGED # use unlogged batches select: fixed(1)/1 # # Specs for insert queries # insert: partitions: fixed(1) select: fixed(1)/1000 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 queries: singlepost: cql: select * from blogposts where domain = ? LIMIT 1 fields: samerow root@ds210-node2:/home/ubuntu/labwork#
I ran from the node2 and node1 is up.
Help me on fixing this..