0
我能夠啓動兩個cassandra節點實例並通過docker運行。Cassandra:如何增加localhost中節點實例的數量
docker run --name n1 -d tobert/cassandra -dc DC1 -rack RAC1
docker run --name n2 -d tobert/cassandra -seeds 172.17.0.2 -dc DC2 -rack RAC1
當我嘗試啓動新的節點實例N3,那麼它沒有經過任何錯誤,但我沒有看到任何N3實例來了,我只看到2個節點。
$ docker run --name n3 -d tobert/cassandra -seeds 172.17.0.2 -dc DC1 -rack RAC2
XXX
$ docker ps (doesnt show the third cassandra node)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8ab64fa86819 tobert/cassandra "/bin/cassandra-docke" 41 minutes ago Up 41 minutes 7000/tcp, 7199/tcp, 9042/tcp, 9160/tcp, 61621/tcp n2
125fc4ffba4d tobert/cassandra "/bin/cassandra-docke" 42 minutes ago Up 42 minutes 7000/tcp, 7199/tcp, 9042/tcp, 9160/tcp, 61621/tcp n1
$ docker exec -it n1 nodetool status
Datacenter: DC2
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 172.17.0.3 82.43 KB 256 100.0% XXX RAC1
Datacenter: DC1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 172.17.0.2 51.48 KB 256 100.0% XXX RAC1
請問任何人請讓我知道爲什麼會發生這種情況。需要做些什麼來啓動更多的節點實例。很顯然,我的本地主機中超過2個的節點實例在這裏是一個問題。爲什麼?
標準輸出記錄到'/數據/日誌/ output.log'其是圖像中的體積的節點。 '碼頭檢查-f'{{.Mounts | printf「%+ v」}}'n1' – Matt