Create the first node, setting the tokens manually. Create the keyspace. Add the rest of the nodes with the allocate tokens uncommented.
On Thu, Feb 14, 2019 at 11:43 AM DuyHai Doan <doanduy...@gmail.com> wrote: > Hello users > > By looking at the mailing list archive, there was already some questions > about the flag "allocate_tokens_for_keyspace" from cassandra.yaml > > I'm starting a fresh new cluster (with 0 data). > > The keyspace used by the project is raw_data so I > set allocate_tokens_for_keyspace = raw_data in the cassandra.yaml > > However the cluster fails to start, the keyspace does not exist yet (of > course, it is not yet created). > > So to me it is like chicken and egg issue: > > 1. You create a fresh new cluster with the option > "allocate_tokens_for_keyspace" commented out, in this case you cannot > optimize the token allocations > 2. You create a fresh new cluster with option > "allocate_tokens_for_keyspace" pointing to a not-yet created keyspace, it > fails (logically) > > The third option is: > > a. create a new cluster with "allocate_tokens_for_keyspace" commented out > b. create the keyspace "raw_data" > c. set allocate_tokens_for_keyspace = raw_data > > My question is, since after step a. the token allocation is *already* > done, what's the point setting the flag in step c. ???? > > Regards > > Duy Hai DOAN > -- Jon Haddad http://www.rustyrazorblade.com twitter: rustyrazorblade