4

3 つのノードを持つ cassandra リング、3 つのノードを持つ Hadoop リング、および 3 つのノードを持つ solr リングがすべて同じクラスター内にあります。

私の計画は、データを cassandra リングに書き込み、cassandra DC レプリケーションを使用して、データを他の 2 つのリング (Hadoop と solr) に複製することです。

cassandra リングに vnode を使用しましたが、hadoop/solr では vnode がサポートされていないため、hadoop と solr にはトークンを使用する必要があります。

私の質問は、murmur3 パーティショナー用の複数のデータセンター トークンを生成する方法です。

4

2 に答える 2

0

TL;DR;
Use vnodes, token calculation is done for you.

You'd do it normally but then just add 100 (anything between 100 and 1000 allows you to fail on bootstrapping more than 10 times without worrying about running into issues where the new nodes auto-join on a previous attempt to the tokens in the second DC. (thanks Joaquin!))

E.g. (notice the last 3 figures in each token)

DC1

  1. -9223372036854775808
  2. -3074457345618258603
  3. 3074457345618258602

DC2

  1. -9223372036854775708
  2. -3074457345618258503
  3. 3074457345618258502

Old docs, but still valid.

于 2014-02-11T19:36:02.347 に答える