title: setting up cassandra multi node cluster: 'Nodes have the same token 0'
body: <p>I'm trying to set up a Cassandra multi node cluster in my computer just to test, but it seems not work... The Cassandra version is 1.1 and It runs on Ubuntu.</p>
  
  <p>Fist of all, I've modified the cassandra.yaml file for each node as follows: </p>
  
  <p><strong>node0</strong></p>
  
  <ul>
  <li>initial_token: 0</li>
  <li>seeds: "127.0.0.1"</li>
  <li>listen_address: 127.0.0.1</li>
  <li>rpc_address: 0.0.0.0 </li>
  <li>endpoint_snitch: RackInferringSnitch</li>
  </ul>
  
  <p><strong>node1</strong></p>
  
  <p>same as <em>node0</em> exept for:</p>
  
  <ul>
  <li>initial_token: 28356863910078205288614550619314017621 <em>(get using
  cassandra token generator)</em> </li>
  <li>listen_address: 127.0.0.2</li>
  </ul>
  
  <hr>
  
  <p>After that, I've started first the seed node 127.0.0.1 and, once the node is up, I've started the other node 127.0.0.2. I've got the following:</p>
  
  <p>[...]</p>
  
  <p>INFO 06:09:27,146 Listening for thrift clients...</p>
  
  <p>INFO 06:09:27,909 Node /127.0.0.1 is now part of the cluster</p>
  
  <p>INFO 06:09:27,911 InetAddress /127.0.0.1 is now UP</p>
  
  <p>INFO 06:09:27,913 Nodes /127.0.0.1 and /127.0.0.2 have the same token 0.  Ignoring /127.0.0.1</p>
  
  <hr>
  
  <p>Running <em>nodetool -h localhost ring</em> it shows:</p>
  
  <p>Address: 127.0.0.2</p>
  
  <p>DC:    datacenter1 </p>
  
  <p>Rack:  rack1  </p>
  
  <p>Status: Up</p>
  
  <p>State:  Normal </p>
  
  <p>Load:   11,21 KB    </p>
  
  <p>Owns:   100,00%    </p>
  
  <p>Token:  0</p>
  
  <p>As you can see, only the information of the second node is showed owning 100% of the ring. Indeed, the token is initialized to 0 instead of to the value I defined at its cassandra.yaml file.</p>
  
  <hr>
  
  <p>The gossip Info is:</p>
  
  <p>/127.0.0.2</p>
  
  <p>LOAD:25559.0</p>
  
  <p>STATUS:NORMAL,0</p>
  
  <p>SCHEMA:59adb24e-f3cd-3e02-97f0-5b395827453f</p>
  
  <p>RELEASE_VERSION:1.1.6-SNAPSHOT</p>
  
  <p>RPC_ADDRESS:0.0.0.0</p>
  
  <p>/127.0.0.1</p>
  
  <p>LOAD:29859.0</p>
  
  <p>STATUS:NORMAL,0</p>
  
  <p>SCHEMA:59adb24e-f3cd-3e02-97f0-5b395827453f</p>
  
  <p>RELEASE_VERSION:1.1.6-SNAPSHOT</p>
  
  <p>RPC_ADDRESS:0.0.0.0</p>
  
  <hr>
  
  <p>Does anyone know what is happening and how can I fix it?
  Thank you so much in advance!!</p>