Database Reference
In-Depth Information
vivek@vivek-Vostro-3560:~/software/
local-cluster/node1$ tools/bin/token-generator
RandomPartitioner
Token Generator Interactive Mode
--------------------------------
How many datacenters will participate in
this Cassandra cluster? 1
How many nodes are in datacenter #1? 3
DC #1:
Node
#1: 0
Node #2:
56713727820156410577229101238628035242
Node #3:
113427455640312821154458202477256070484
Here software/local-cluster/node1 stands for
$CASSANDRA_HOME . If you choose to use Murmur3Partition-
er , you can generate token values by executing the following com-
mand:
python -c 'print [str(((2**64 / 3) * i) -
2**63) for i in range(3)]'
It would give this output:
['-9223372036854775808',
'-3074457345618258603', '3074457345618258602']
The next step is to configure three nodes for cluster setup. For de-
tailed instruction about how to set this up, please refer to the “Config-
uring Multiple Nodes over a Single Machine” section in Chapter 1 . In
brief, we need to modify configurations such as listen_address ,
rpc_port , jmx_port , the data directory, the commit-log direct-
ory, and native_protocol in corresponding Cassandra.yaml.
Search WWH ::




Custom Search