Play with cqlsh of Cassandra:
Last login: Thu Nov 12 16:18:21 on ttys002 dhcp-892be8ce:apache-cassandra-3.0.0 mac$ bin/cqlsh Connected to Test Cluster at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 3.0.0 | CQL spec 3.3.1 | Native protocol v4] Use HELP for help. cqlsh>
Usually try:
>> sudo bin/cassandra shutdown
(not working actually)
Ports already in use….(tried kill -9 -PID, but seems not working…) So better to change the conf/cassandra.yaml, and find the port number and do changes.
Also tried
pkill -f CassandraDaemon
Seems not work very well.
The following will allow Cassandra run not in bg.
bin/cassandra -f
Finally, I re-stared my machine and everything worked well….
Play with local mode of Titan:
Working smoothly.
Remote Server Mode
Still working on this part. I can not connect my Java code with Titan. >_<.
Question asked here.
References and useful links:
http://wiki.apache.org/cassandra/GettingStarted
https://jaceklaskowski.gitbooks.io/titan-scala/content/index.html (A handbook of Titan)
http://stackoverflow.com/questions/19006616/how-to-import-a-csv-file-into-titan-graph-database (Loding CSV to Titan)