Example Graph Configuration - andrew-nguyen/titan GitHub Wiki
This page illustrates a number of common graph configurations. Please refer to the Graph Configuration documentation and the pages of the respective storage backend and index backend for more information.
Also, note that the Titan distribution includes local configuration files in the conf/
directory.
storage.backend=berkeleyje
storage.directory=/tmp/graph
storage.index.search.backend=elasticsearch
storage.index.search.directory=/tmp/searchindex
storage.index.search.client-only=false
storage.index.search.local-mode=true
This configuration file configures Titan to use BerkeleyDB as an embedded storage backend, meaning, Titan will start BerkeleyDB internally. The primary data will be stored in the directory /tmp/graph
.
In addition, this configures an embedded Elasticsearch index backend with the name search
. Titan will start Elasticsearch internally and it will not be externally accessible since local-mode
is enabled. Elasticsearch stores all data for the search
index in /tmp/searchindex
. Configuring an index backend is optional.
storage.backend=cassandra
storage.hostname=100.100.100.1,100.100.100.2
storage.index.search.backend=elasticsearch
storage.index.search.hostname=100.100.101.1,100.100.101.2
storage.index.search.client-only=true
This configuration file configures Titan to use Cassandra as a remote storage backend. It assumes that a Cassandra cluster is running and accessible at the given IP addresses. If Cassandra is running locally, use the IP address 127.0.0.1
.
In addition, this configures a remote Elasticsearch index backend with the name search
. It assumes that an Elasticsearch cluster is running and accessible at the given IP addresses. Enabling client-only
ensures that the local instance does not join the existing Elasticsearch cluster as another node but only connects to it. Configuring an index backend is optional.
storage.backend=embeddedcassandra
storage.cassandra-config-dir=config/cassandra.yaml
storage.index.search.backend=elasticsearch
storage.index.search.directory=/tmp/searchindex
storage.index.search.client-only=false
storage.index.search.local-mode=true
This configuration file configures Titan to start Cassandra internally embedded in Titan and specifies the yaml configuration file for Cassandra. Cassandra is still accessible externally and can connect to other available Cassandra nodes to form a cluster as configured in the yaml file.
The optional index backend configuration is identical to embedded index configuration described above.
storage.backend=hbase
storage.hostname=127.0.0.1
storage.port=2181
storage.index.search.backend=elasticsearch
storage.index.search.hostname=127.0.0.1
storage.index.search.client-only=true
This configuration file configures Titan to use HBase as a remote storage backend. It assumes that an HBase cluster is running and accessible at the given IP addresses through the configured port. If HBase is running locally, use the IP address 127.0.0.1
.
The optional index backend configuration is identical to remote index configuration described above.