Deploy Cassandra Environments on Linux (multi-node cluster) __linux

Source: Internet
Author: User
Tags cassandra

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


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.