Database Reference
In-Depth Information
By default, it will write to /var/lib/cassandra , so that directory must
be created with appropriate permissions. To change this, there are three
sections of the cassandra.yaml file that specify the data output
directories:
# Directories where Cassandra should store data on
disk. Cassandra
# will spread data evenly across them, subject to the
granularity of
# the configured compaction strategy.
data_file_directories:
- /var/lib/cassandra/data
# commit log
commitlog_directory: /var/lib/cassandra/commitlog
# saved caches
saved_caches_directory: /var/lib/cassandra/saved_caches
For multi-node clusters, listen_address and rpc_address should be
set. The first parameter, listen_address , is the network interface the
node will use for gossip while the latter is used for client connections.
Leaving both blank usually works, but sometimes it is necessary to specify
a specific network address to use. By default, listen_address is set to
“localhost,” which usually doesn't work:
# Address to bind to and tell other Cassandra nodes to
connect to. You
# _must_ change this if you want multiple nodes to be
able to
# communicate!
#
# Leaving it blank leaves it up to
InetAddress.getLocalHost(). This
# will always do the Right Thing _if_ the node is
properly configured
# (hostname, name resolution, etc), and the Right
Thing is to use the
# address associated with the hostname (it might not
be).
#
Search WWH ::




Custom Search