Cluster machine:
1. Windows 7 10.202.92.124 [seed]
2. Windows Server 2008 R2 Enterprise 10.202.92.93
Zero: prerequisites
1. Set JDK and Google or easy.
2. download the latest Apache-Cassandra. This article uses APACHE-Cassandra-1.2.0 version, download the official website is: http://cassandra.apache.org
I. Configuration
Original configuration in CONF/Cassandra. yaml: A, listen_address: localhost
B. rpc_address: localhost
C.-seeds: "127.0.0.1". What we need to do is as follows:
Windows 7 10.202.92.124 Configuration:
1. Edit CONF/Cassandra. yaml and modify the configuration as follows:
A. listen_address: 10.202.92.124
B. rpc_address: 0.0.0.0
C.-seeds: "10.202.92.124"
2. Start CASSANDRA:./bin/Cassandra.
Windows Server 2008 R2 Enterprise 10.202.92.93 Configuration:
1. Edit CONF/Cassandra. yaml and modify the configuration as follows:
A. listen_address: 10.202.92.93
B. rpc_address: 0.0.0.0
C.-seeds: "10.202.92.124"
2. Start Cassandra and double-click Cassandra. bat.
PS: To start Cassandra. bat, you can also use the CMD command line to run Cassandra-F, so that the service can run on the foreground after the startup is completed, and the execution log is displayed.
2. view the cluster and execute nodetool in cmd under the Cassandra directory. Program Command: nodetool-H 10.202.92.124 ring or nodetool-H 10.202.92.93 ring PS: The method for adding more nodes is similar to that for adding a second node, after the configuration is complete, you can use nodetool to view the ring