我正在关注Initializing a multiple node cluster (single datacenter) :
cassandra.yaml
我做了以下更改:
- seeds: "192.168.1.8, localhost"
- endpoint_snitch: GossipingPropertyFileSnitch
- rpc_address: localhost
所有其他更改均为默认设置。我对通过同一wifi连接的两台不同的笔记本电脑进行了相同的更改。
当我运行bin/nodetool status
时,我只会看到一个条目:
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.1 146.15 KiB 256 100.0% b13a2e35-5228-43f7-8e3e-667685fc771e rack1
我以bin/cassandra -Dcassandra.ignore_dc=true
的身份运行cassandra,这是日志:
INFO [main] 2018-07-15 18:04:14,869 IndexSummaryManager.java:85 - Initializing index summary manager with a memory pool size of 96 MB and a resize interval of 60 minutes
INFO [main] 2018-07-15 18:04:14,877 MessagingService.java:753 - Starting Messaging Service on localhost/127.0.0.1:7000 (lo)
INFO [main] 2018-07-15 18:04:14,899 OutboundTcpConnection.java:108 - OutboundTcpConnection using coalescing strategy DISABLED
WARN [main] 2018-07-15 18:04:45,926 Gossiper.java:1417 - Unable to gossip with any seeds but continuing since node is in its own seed list
INFO [main] 2018-07-15 18:04:45,947 StorageService.java:706 - Loading persisted ring state
INFO [main] 2018-07-15 18:04:45,948 StorageService.java:819 - Starting up server gossip
INFO [main] 2018-07-15 18:04:46,433 StorageService.java:857 - This node will not auto bootstrap because it is configured to be a seed node.
如果我在没有bin/cassandra -Dcassandra.ignore_dc=true
的情况下跑步,我将得到此提示:
INFO [main] 2018-07-15 18:24:40,303 StorageService.java:819 - Starting up server gossip
INFO [main] 2018-07-15 18:24:40,769 TokenMetadata.java:479 - Updating topology for localhost/127.0.0.1
INFO [main] 2018-07-15 18:24:40,771 TokenMetadata.java:479 - Updating topology for localhost/127.0.0.1
INFO [main] 2018-07-15 18:24:40,822 StorageService.java:1442 - JOINING: Finish joining ring
答案 0 :(得分:0)
我会更新: