<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: Adding second node removes first node from nodetool ring</title>
		<link>http://www.datastax.com/support-forums/topic/adding-second-node-removes-first-node-from-nodetool-ring</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 17:25:36 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/adding-second-node-removes-first-node-from-nodetool-ring" rel="self" type="application/rss+xml" />

		<item>
			<title>Anonymous on "Adding second node removes first node from nodetool ring"</title>
			<link>http://www.datastax.com/support-forums/topic/adding-second-node-removes-first-node-from-nodetool-ring#post-1873</link>
			<pubDate>Tue, 08 May 2012 19:18:23 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1873@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Great - it worked!&#60;br /&#62;
Stopped cassandra on both nodes, deleted the data, commitlog and cache folders:&#60;br /&#62;
rm -R /var/lib/cassandra/data/*&#60;br /&#62;
rm -R /var/lib/cassandra/commitlog/*&#60;br /&#62;
rm -R /var/lib/cassandra/saved_caches/*&#60;br /&#62;
then restarted cassandra on node1, wait 30 sec, then start cassandra on node 2, wait 1 min then run nodetool -h localhost ring:&#60;br /&#62;
Address         DC          Rack        Status State   Load            Owns    Token&#60;br /&#62;
                                                                               85070591730234615865843651857942052864&#60;br /&#62;
192.168.0.247   datacenter1 rack1       Up     Normal  9.06 KB         50.00%  0&#60;br /&#62;
192.168.0.248   datacenter1 rack1       Up     Normal  6.66 KB         50.00%  85070591730234615865843651857942052864&#60;/p&#62;
&#60;p&#62;Thank you!&#60;br /&#62;
Best regards&#60;br /&#62;
Thomas Augustinus
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "Adding second node removes first node from nodetool ring"</title>
			<link>http://www.datastax.com/support-forums/topic/adding-second-node-removes-first-node-from-nodetool-ring#post-1872</link>
			<pubDate>Tue, 08 May 2012 18:47:45 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">1872@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;The cassandra data directories are configured in your cassandra.yaml. By default they are set to '/var/lib/cassandra'. I would reccommend deleting that directory on both nodes and starting with a completely clean install.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Adding second node removes first node from nodetool ring"</title>
			<link>http://www.datastax.com/support-forums/topic/adding-second-node-removes-first-node-from-nodetool-ring#post-1871</link>
			<pubDate>Tue, 08 May 2012 18:44:45 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1871@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;That is very likely - I did not think of that!&#60;br /&#62;
could you please guide me to the files / folders I need to delete?&#60;br /&#62;
- or should I use a nodetool decomission?&#60;br /&#62;
Thanks&#60;br /&#62;
Thomas Augutinus
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "Adding second node removes first node from nodetool ring"</title>
			<link>http://www.datastax.com/support-forums/topic/adding-second-node-removes-first-node-from-nodetool-ring#post-1870</link>
			<pubDate>Tue, 08 May 2012 18:32:50 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">1870@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;When you say 'cloned the first machine', do you mean completely cloned? When you start the first node it will save configuration files to the cassandra system tables. If those files exist when the second machine starts up, it could cause a problem like this. Make sure all data from your cassandra data directories is deleted when the second machine is started.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Adding second node removes first node from nodetool ring"</title>
			<link>http://www.datastax.com/support-forums/topic/adding-second-node-removes-first-node-from-nodetool-ring#post-1869</link>
			<pubDate>Tue, 08 May 2012 18:13:43 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1869@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have installed cassandra on freebsd hyper-v virtual machine. The first node seems to be running ok with the following settings:&#60;br /&#62;
cluster_name: 'Avargy Cluster'&#60;br /&#62;
initial_token: 0&#60;br /&#62;
seed_provider:&#60;br /&#62;
          - seeds: &#34;192.168.0.247&#34;&#60;br /&#62;
listen_address: 192.168.0.247&#60;br /&#62;
rpc_address: 192.168.0.247&#60;br /&#62;
(the rest is at default settings)&#60;br /&#62;
so - running &#34;nodetool -h localhost ring&#34; returns:&#60;br /&#62;
Address         DC          Rack        Status State   Load            Owns    Token&#60;br /&#62;
192.168.0.247   datacenter1 rack1       Up     Normal  22.21 KB        100.00% 0&#60;/p&#62;
&#60;p&#62;So, I cloned the first machine, changed ip, host-name in /etc/rc.conf and added a dns entry. The network connection works fine. I don't think that the clone is the related to the problem - just to complete the picture...&#60;br /&#62;
I have disabled the firewall so it is not in the way :-)&#60;/p&#62;
&#60;p&#62;Now - I updated the cassandra.yaml script on the second node:&#60;br /&#62;
initial_token: 85070591730234615865843651857942052864&#60;br /&#62;
seed_provider:&#60;br /&#62;
          - seeds: &#34;192.168.0.247&#34;&#60;br /&#62;
listen_address: 192.168.0.248&#60;br /&#62;
rpc_address: 192.168.0.248&#60;br /&#62;
(the rest is as node1)&#60;/p&#62;
&#60;p&#62;now - after starting cassandra I run &#34;nodetool -h localhost ring&#34; again (on node1):&#60;br /&#62;
Address         DC          Rack        Status State   Load            Owns    Token&#60;br /&#62;
192.168.0.248   datacenter1 rack1       Up     Normal  31.22 KB        100.00% 0&#60;/p&#62;
&#60;p&#62;So - apparently the new node &#34;takes over&#34;... and gets a token &#34;0&#34; - strange... :-(&#60;br /&#62;
I expected (hoped) to see both nodes listed with each handling 50%... &#60;/p&#62;
&#60;p&#62;what do I do wrong?&#60;/p&#62;
&#60;p&#62;Thanks in advance!&#60;br /&#62;
Thomas Augustinus
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
