Database Reference
In-Depth Information
NOTE
Make sure that the autobootstrap element is set to false if you're using a node's own IP address as a seed.
One approach is to make the first three or five nodes in a cluster seeds, without autobootstrap—that is,
by manually choosing tokens or by allowing Cassandra to pick random tokens. The rest of your nodes
will not be seeds, so they can be added using autobootstrap.
Next, we need to update the listen address for this machine so it's not just on loopback. Listen
address is how nodes identify each other, and it's used for all internal communication.
listen_address: 192.168.1.5
Finally, we need to change the address on which our RPC client will broadcast because this is
how other nodes will see this one. By default, the configuration file will have an rpc_address
entry that uses localhost. We'll change this value to the actual IP address of each machine:
rpc_address: 192.168.1.5
The rpc_address setting is used only for connections made directly from clients to Cassandra
nodes.
NOTE
rpc_address used to be called ThriftAddress , but because of the upcoming possible change to Avro
instead of Thrift as the RPC mechanism, it has been changed to a more general name.
Now you can restart Cassandra and start the installations on the other machines. If you have suc-
cessfully added multiple nodes to your cluster, you will see output similar to this (yours might be
a little less verbose, as I'm showing debug-level output here):
INFO 15:45:15,629 Starting up server gossip
INFO 15:45:15,677 Binding thrift service to /192.168.1.5:9160
INFO 15:45:15,681 Cassandra starting up...
DEBUG 15:45:16,636 GC for ParNew: 13 ms, 12879912 reclaimed leaving 11233080 used;
max is 1177812992
DEBUG 15:45:16,647 attempting to connect to /192.168.1.7
DEBUG 15:45:17,638 Disseminating load info ...
INFO 15:45:19,744 Node /192.168.1.7 is now part of the cluster
DEBUG 15:45:19,746 Node /192.168.1.7 state normal, token
41654880048427970483049687892424207188
DEBUG 15:45:19,746 No bootstrapping or leaving nodes -> empty pending ranges
for Keyspace1
INFO 15:45:20,789 InetAddress /192.168.1.7 is now UP
Search WWH ::




Custom Search