Immediately above: http://blog.csdn.net/kunshan_shenbin/article/details/7100713
Resources:
http://zhangliancheng.com/2011/04/cassandra-cluster-setup-in-ubuntu/
Http://wiki.apache.org/cassandra/MultinodeCluster_JP
Let's assume
nodea-ip:192.168.11.124
nodeb-ip:192.168.11.185
1. Modify Rpc_address:
In the manner mentioned in (Single-node) above, modify the Nodea,nodeb configuration in turn:
Cassandra.yaml file rpc_address to native IP (or 0.0.0.0)
2. Modify Listen_address: (same as rpc_address, but only set the cost machine IP)
Find Rpc_address:localhost
Change to Rpc_address: < native ip>
3. Modify seed.
Find-Seeds: "127.0.0.1"
Change NodeA and Noden to-seeds: "192.168.11.124"
4. Start Nodea,nodeb Cassandra in turn
5. Verify
./nodetool-h 192.168.11.124 Ring
See if all of the node is in the loop.
Precautions:
If you find that some node is not in the loop, it is most likely because some of the machine's ports are not opened.
We need to open 7000 ports on the node machine (and 9160 ports for client access)
Resources:
Http://tech.techweb.com.cn/thread-536818-1-1.html
Http://wiki.apache.org/cassandra/MultinodeCluster_JP
Http://wiki.apache.org/cassandra/StorageConfiguration_JP