This is a simple tool generating SSTable files containing sample data set (aka bank model). Can be easily use in learning purposes.
It generates following tables:
- Accounts
- AccountsHistory
- CustomerAccounts
- Customers
- CustomersByID
- At first make sure that run around correct Apache Cassandra version :)
- Next create a keyspace with script src/main/resources/create-keyspace.cql
- Prepare all tables with scripts src/main/resources/*-schema.cql
- Finaly execute below command :
mvn exec:java -Dexec.mainClass="tomekkup.sstablegen.App"
- Check naming of directories containing generated files. Simetimes should be lowercase ! Rename if needed.
- Go into dir 'banking'
- Execute for every cf :
sstableloader -d 'your_node_ip' banking/cf-name
- Maven
- Apache Cassandra