Especially in the Internet world, the graph calculation is getting more and more people's attention, and the graph computation related software is also more and more abundant. This article will show the graph database of Titan This open source at high speed.
Note: This article is mainly based on Titan's official two documents:
-Http://s3.thinkaurelius.com/docs/titan/0.5.0/arch-overview.html
-Http://s3.thinkaurelius.com/docs/titan/0.5.0/getting-started.html
1. Architecture
The architecture diagram of Titan is very clear, so this article is just a few things to repeat:
A. Titan's data needs to exist in a database, and users can select the following databases:
-Cassandra
-HBase
-BerkeleyDB
B. The implementation of the Titan bottom requires index support:
-Elasticsearch
-Lucene
C. Users are able to access Titan in two types of ways:
-Java API
-Blueprints-based Tinkerpop stack tool, for example:
-The Gremlin Query language
-The Rexster graph server
2. Installation
After understanding the Titan architecture, the installation and configuration becomes relatively easy. The information about HBase and Elasticsearch is configured in Titan before using Titan, and the two services are guaranteed to be in the boot state. The database that is used in my environment is hbase.
3. Visit Titan via Gremlin
A. Enter the Gremlin command line: Run ${titan_home}/bin/gremlin.sh
B. Import the "Map of the Gods" example library into the database for the next attempt
First, you can learn more about the "Atlas of the Gods", including:
Create a graph instance by command ' G = titanfactory.open (' conf/titan-hbase-es.properties ') '. After running the command, a table named ' Titan ' will be created in the HBase database with the following:
Import the map of the gods into the database by command ' graphofthegodsfactory.load (g) '. When finished, the HBase Titan table will add very many rows of data.
Now it's easy to take advantage of the features provided by Gremlin to traverse the gallery. is part of the demo sample, interested friends can find many other commands and do experiments from the official website Doc.
Figure Database Titan QuickStart