Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 2.3 KB

step1.md

File metadata and controls

74 lines (56 loc) · 2.3 KB
Write Path ℹ️ For technical support, please contact us via email.
⬅️ Back Step 1 of 2 Next ➡️
Watch the commit log directory as you insert rows

✅ Check that the node is up and running:

nodetool status

✅ In terminal-two, execute the following command:


Note: Clicking on the command below will automatically execute it in terminal-two.


### term2
watch -n 1 -d "ls -lh node/data/commitlog"

This will refresh the contents of the commit log directory every second so that you can see what happens to the commit log files.

Don’t do it now, but keep in mind you’ll need to press CTRL-C to exit the watch.

✅ In terminal-one, run cassandra-stress to write several hundreds of thousands of rows to our node:

./node/tools/bin/cassandra-stress write no-warmup n=250000 -port native=9042 -rate threads=1

There are a few things to watch for in terminal-two while cassandra-stress inserts rows:

  • The total size will continue to increase.
  • The timestamp will change for the current segment being written.
  • You may get additional commit log files as well.

✅ When cassandra-stress completes, terminate the watch on the second terminal by pressing CTRL-C.

### {"terminalId": "term2", "macrosBefore": ["ctrl_c"]}
echo "ctrl-c"
⬅️ Back Next ➡️