我非常新的卡桑德拉和我試圖安裝在我家VM一個2節點集羣...我得到2臺機器運行起來例外:無法使用任何種子八卦
NAME - IP Address
machine#1 - cassa - 192.168.1.200
machine#2 - cassa2 - 192.168.1.201
我已經得到了卡桑德拉並在機#1上運行,但現在當我嘗試打開卡桑德拉上機#2,我得到以下味精
這裏的東西上機#改爲1
cluster_name: 'demo'
data_file_directories:
- /home/cass/cassandra/data
commitlog_directory: /home/cass/cassandra/commitlog
saved_caches_directory: /home/cass/cassandra/saved_caches
seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
- seeds: "192.168.1.200"
listen_address: 192.168.1.200
rpc_address: 192.168.1.200
,這裏是從機#2
cluster_name: 'demo'
data_file_directories:
- /home/cass/cassandra/data
commitlog_directory: /home/cass/cassandra/commitlog
saved_caches_directory: /home/cass/cassandra/saved_caches
seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
- seeds: "192.168.1.200"
listen_address: 192.168.1.201
rpc_address: 192.168.1.201
任何知道我是缺少在這裏的東西嗎?
也因爲你可以看到,我可以從機#2
[[email protected] cassandra]$ ping 192.168.1.200
PING 192.168.1.200 (192.168.1.200) 56(84) bytes of data.
64 bytes from 192.168.1.200: icmp_seq=1 ttl=64 time=1.20 ms
64 bytes from 192.168.1.200: icmp_seq=2 ttl=64 time=0.170 ms
64 bytes from 192.168.1.200: icmp_seq=3 ttl=64 time=0.167 ms
^C
--- 192.168.1.200 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2495ms
rtt min/avg/max/mdev = 0.167/0.515/1.208/0.490 ms
[[email protected] cassandra]$
只是想知道,但你有沒有打開這裏列出的節點間和客戶端端口?:http://www.datastax.com/documentation/cassandra/2.1/cassandra/security/secureFireWall_r.html – Aaron 2014-10-03 18:18:08
感謝您的評論,但我沒有在它們之間運行的防火牆......正如我提到的那樣,它只是2臺機器在我的VMware工作站上運行......它們之間沒有防火牆......我可以從一臺服務器ssh ssh到另一臺沒有問題.. – 2014-10-03 18:23:47
@ BryceAtNetwork23 ..謝謝你指點我正確的方向...禁用linux防火牆後,我能夠得到它並運行... – 2014-10-03 18:58:01