Titan with Cassandra
In a previous blog post about Titan, I mentioned about Titan supports three different storage back ends. For this, you need Titan and Cassandra both.
Then extract Cassandra and Titan both into a folder and take a terminal or a command prompt. Go to Cassandra bin and run cassandra.bat or Cassandra. Before this, you have to set JAVA_HOME.
Linux:
Windows:
Then take gremlin from titan bin.
Linux:
Then extract Cassandra and Titan both into a folder and take a terminal or a command prompt. Go to Cassandra bin and run cassandra.bat or Cassandra. Before this, you have to set JAVA_HOME.
Linux:
bash cassandra
Windows:
cassandra.bat
Then take gremlin from titan bin.
Linux:
bash gremlin.shWindows:
gremlin.batThen you have to configure storage backend. for that use following commands on gremlin.
Now rest is your graph database experience!!!
cnf = new BaseConfiguration();
cnf.setProperty('storage.backend','cassandra');
cnf.setProperty('storage.hostname','127.0.0.1');
g = TitanFactory.open(cnf);