Figure Database Titan High Speed primer

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.