Linux上部署Cassandra環境(multi-node cluster)__Linux

來源:互聯網
上載者:User

緊接上文:http://blog.csdn.net/kunshan_shenbin/article/details/7100713

參考資料:

http://zhangliancheng.com/2011/04/cassandra-cluster-setup-in-ubuntu/

http://wiki.apache.org/cassandra/MultinodeCluster_JP

我們假設

NodeA - IP : 192.168.11.124

NodeB - IP : 192.168.11.185

1. 修改rpc_address:

按照上文(single-node)中提到的方式,依次修改NodeA,NodeB配置:

cassandra.yaml檔案  rpc_address為本機IP(或0.0.0.0)


2.修改listen_address:(與rpc_address一樣,但只能設定成本機IP)

找到rpc_address: localhost

改為rpc_address: <本機IP>


3.修改seed.

找到- seeds: "127.0.0.1"

把NodeA和NodeN都修改為 - seeds: "192.168.11.124"


4.依次啟動NodeA,NodeB的Cassandra


5.驗證

./nodetool -h 192.168.11.124 ring

查看是否所有的Node都在環中。


注意事項:

如果發現有些Node不在環中,很有可能是因為某些機器的連接埠後沒有開啟。

我們需要開啟Node機器上的7000連接埠(還有9160連接埠用於用戶端訪問)


參考資料:

http://tech.techweb.com.cn/thread-536818-1-1.html

http://wiki.apache.org/cassandra/MultinodeCluster_JP

http://wiki.apache.org/cassandra/StorageConfiguration_JP


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.