我正在使用具有4个节点数的cassandra 1.2.15集群,并且在简单网络拓扑中具有复制为2的密钥空间。我正在使用Murmur3Partitioner。我已经使用yaml文件中提供的默认配置。第一个节点是种子节点,另外3个节点将第一个节点指向种子节点。Cassandra查询特定节点
第一个节点YAML配置
initial_token: left empty
num_tokens: 256
auto_bootstrap: false
其他3个节点YAML配置
initial_token: left empty
num_tokens: 256
auto_bootstrap: true
我有三个问题,我的主要问题是问题1,
问题1:
I need to query a specific node on the cluster. (ie) In a four node cluster I need to make a query to select all the rows in a column family for the node 2 alone.Is it possible? If yes how to proceed?
问题2:
Whether my yaml configuration is correct or not for the above approach?
问题3:
Whether this configuration will make any trouble in future, if I add two nodes in the cluster?
感谢您的回复。我无法得到你对问题2的答案。从cassandra文档开始,如果initial_token设置为空并且num_tokens设置为256,则启用vnodes。我是否正确?所以我配置了这种方式来实现vnodes。我是否正确?或者我的理解错了?更好的想法是自己为初始节点填充令牌,而不是将其留给C *。我无法赶上你以前的发言。更好的主意意味着什么怎么样? – 2014-10-17 17:32:24