Install a dual-node Cassandra cluster under Cassandra 1.2.0 win7

Source: Internet
Author: User
Tags cassandra
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.