- Eclipse: Run As-> Maven Build ->Goals jetty:run
- CLI: mvn jetty:run
in a browser go to http://localhost:8080/tas-struts2-cassandra/
sudo mkdir -p /var/log/cassandra
sudo chown -R `whoami` /var/log/cassandra
sudo mkdir -p /var/lib/cassandra
sudo chown -R `whoami` /var/lib/cassandra
./bin/cassandra -f
./bin/cassandra-cli --host localhost
[default@unknown] create keyspace tas_struts2_cassandra;
[default@unknown] use tas_struts2_cassandra;
Authenticated to keyspace: tas_struts2_cassandra
[default@tas_struts2_cassandra] create column family Users with comparator=UTF8Type and default_validation_class=UTF8Type and key_validation_class=UTF8Type;
[default@tas_struts2_cassandra] create column family Tweets with comparator=UTF8Type and default_validation_class=UTF8Type and key_validation_class=UUIDType;
Users = {
'testuser1':{
{"name":"username","value":"testuser1","timestamp":""},
{"name":"password","value":"MD5(testuser1)","timestamp":""},
},
'testuser2':{
{"name":"username","value":"testuser2","timestamp":""},
{"name":"password","value":"MD5(testuser2)","timestamp":""},
},
}
Tweets = {
'timeuuid_1':{
{"name":"username","value":"testuser1","timestamp":""},
{"name":"message","value":"this is a tweet message posted by testuser1","timestamp":""},
},
'timeuuid_2':{
{"name":"username","value":"testuser2","timestamp":""},
{"name":"message","value":"this is a tweet message posted by testuser2","timestamp":""},
},
}