forked from thinkaurelius/titan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexampleconfig.txt
81 lines (58 loc) · 3.41 KB
/
exampleconfig.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[[example-config]]
Example Graph Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~
This page illustrates a number of common graph configurations. Please refer to <<titan-config-ref>> and the pages of the respective <<storage-backends, storage backend>> <<index-backends, index backend>> for more information.
Also, note that the Titan distribution includes local configuration files in the `conf/` directory.
BerkeleyDB
^^^^^^^^^^
[source, properties]
----
storage.backend=berkeleyje
storage.directory=/tmp/graph
index.search.backend=elasticsearch
index.search.directory=/tmp/searchindex
index.search.elasticsearch.client-only=false
index.search.elasticsearch.local-mode=true
----
This configuration file configures Titan to use <<bdb, 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, 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.
Cassandra
^^^^^^^^^
Cassandra Remote
++++++++++++++++
[source, properties]
----
storage.backend=cassandra
storage.hostname=100.100.100.1, 100.100.100.2
index.search.backend=elasticsearch
index.search.hostname=100.100.101.1, 100.100.101.2
index.search.elasticsearch.client-only=true
----
This configuration file configures Titan to use <<cassandra, 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, 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.
Embedded Cassandra
++++++++++++++++++
[source, properties]
----
storage.backend=embeddedcassandra
storage.conf-file=config/cassandra.yaml
index.search.backend=elasticsearch
index.search.directory=/tmp/searchindex
index.search.elasticsearch.client-only=false
index.search.elasticsearch.local-mode=true
----
This configuration file configures Titan to start <<cassandra, 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.
HBase
^^^^^
[source, properties]
----
storage.backend=hbase
storage.hostname=127.0.0.1
storage.port=2181
index.search.backend=elasticsearch
index.search.hostname=127.0.0.1
index.search.elasticsearch.client-only=true
----
This configuration file configures Titan to use <<hbase, 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.