<?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: Schema versions disagree</title>
		<link>http://www.datastax.com/support-forums/topic/schema-versions-disagree</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 20:10:08 +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/schema-versions-disagree" rel="self" type="application/rss+xml" />

		<item>
			<title>schalla on "Schema versions disagree"</title>
			<link>http://www.datastax.com/support-forums/topic/schema-versions-disagree#post-7065</link>
			<pubDate>Mon, 22 Oct 2012 22:07:24 +0000</pubDate>
			<dc:creator>schalla</dc:creator>
			<guid isPermaLink="false">7065@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Apparently the servers were drifted from time sync. After the time sync, I no longer see &#34;Schema disagreement&#34;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schalla on "Schema versions disagree"</title>
			<link>http://www.datastax.com/support-forums/topic/schema-versions-disagree#post-7059</link>
			<pubDate>Mon, 22 Oct 2012 17:51:09 +0000</pubDate>
			<dc:creator>schalla</dc:creator>
			<guid isPermaLink="false">7059@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;There is no schema disagreement before creating a Keyspace. See the output below. I am trying to figure out what is happening here. &#60;/p&#62;
&#60;p&#62;Connected to: &#34;LabCluster&#34; on 192.168.2.81/9160&#60;br /&#62;
Welcome to Cassandra CLI version 1.1.5&#60;/p&#62;
&#60;p&#62;Type 'help;' or '?' for help.&#60;br /&#62;
Type 'quit;' or 'exit;' to quit.&#60;/p&#62;
&#60;p&#62;[default@unknown] describe cluster;&#60;br /&#62;
Cluster Information:&#60;br /&#62;
   Snitch: com.datastax.bdp.snitch.DseDelegateSnitch&#60;br /&#62;
   Partitioner: org.apache.cassandra.dht.RandomPartitioner&#60;br /&#62;
   Schema versions:&#60;br /&#62;
	67029697-1fcc-3581-9fa1-beb3f516d037: [192.168.2.81, 192.168.2.92, 192.168.2.93]&#60;/p&#62;
&#60;p&#62;[default@unknown] create keyspace test123;&#60;br /&#62;
93c0e215-9327-3998-b3e6-1700fed3cdbf&#60;br /&#62;
Waiting for schema agreement...&#60;br /&#62;
The schema has not settled in 10 seconds; further migrations are ill-advised until it does.&#60;br /&#62;
Versions are 3db42f8b-7749-37cb-80fb-88020a4ab131:[192.168.2.93], 93c0e215-9327-3998-b3e6-1700fed3cdbf:[192.168.2.81, 192.168.2.92]&#60;br /&#62;
[cassandra@ulvdtlchd01 dse-2.2]$ bin/cassandra-cli -h 192.168.2.81 -p 9160&#60;br /&#62;
Connected to: &#34;LabCluster&#34; on 192.168.2.81/9160&#60;br /&#62;
Welcome to Cassandra CLI version 1.1.5&#60;/p&#62;
&#60;p&#62;Type 'help;' or '?' for help.&#60;br /&#62;
Type 'quit;' or 'exit;' to quit.&#60;/p&#62;
&#60;p&#62;[default@unknown] describe cluster;&#60;br /&#62;
Cluster Information:&#60;br /&#62;
   Snitch: com.datastax.bdp.snitch.DseDelegateSnitch&#60;br /&#62;
   Partitioner: org.apache.cassandra.dht.RandomPartitioner&#60;br /&#62;
   Schema versions:&#60;br /&#62;
	93c0e215-9327-3998-b3e6-1700fed3cdbf: [192.168.2.81, 192.168.2.92]&#60;/p&#62;
&#60;p&#62;	c6d8ecc9-08c9-3920-b6b6-c4eed46d074e: [192.168.2.93]
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alexliu on "Schema versions disagree"</title>
			<link>http://www.datastax.com/support-forums/topic/schema-versions-disagree#post-7055</link>
			<pubDate>Mon, 22 Oct 2012 16:32:16 +0000</pubDate>
			<dc:creator>alexliu</dc:creator>
			<guid isPermaLink="false">7055@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;To fix schema disagreements, you need to force the disagreeing nodes to rebuild their schema. Here's how:&#60;/p&#62;
&#60;p&#62;Open the cassandra-cli and run: 'connect localhost/9160;', then 'describe cluster;'. You'll see something like this:&#60;/p&#62;
&#60;p&#62;[default@unknown] describe cluster;&#60;br /&#62;
Cluster Information:&#60;br /&#62;
   Snitch: org.apache.cassandra.locator.SimpleSnitch&#60;br /&#62;
   Partitioner: org.apache.cassandra.dht.RandomPartitioner&#60;br /&#62;
   Schema versions:&#60;br /&#62;
75eece10-bf48-11e0-0000-4d205df954a7: [192.168.1.9, 192.168.1.25]&#60;br /&#62;
5a54ebd0-bd90-11e0-0000-9510c23fceff: [192.168.1.27]&#60;/p&#62;
&#60;p&#62;Note which schemas are in the minority and mark down those IPs -- in the above example, 192.168.1.27. Login to each of those machines and cleaninly stop the Cassandra service/process, typically by running:&#60;/p&#62;
&#60;p&#62;    nodetool disablethrift&#60;br /&#62;
    nodetool disablegossip&#60;br /&#62;
    nodetool drain&#60;/p&#62;
&#60;p&#62;    'sudo service cassandra stop' or 'kill &#38;lt;pid&#38;gt;'. &#60;/p&#62;
&#60;p&#62;At the end of this process the commit log directory (/var/lib/cassandra/commitlog) should contain only a single small file.&#60;/p&#62;
&#60;p&#62;Remove the Schema* and Migration* sstables inside of your system keyspace (/var/lib/cassandra/data/system, if you're using the defaults).&#60;/p&#62;
&#60;p&#62;After starting Cassandra again, this node will notice the missing information and pull in the correct schema from one of the other nodes. In version 1.0.X and before the schema is applied one mutation at a time. While it is being applied the node may log messages, such as the one below, that a Column Family cannot be found. These messages can be ignored.&#60;/p&#62;
&#60;p&#62;ERROR [MutationStage:1] 2012-05-18 16:23:15,664 RowMutationVerbHandler.java (line 61) Error in row mutation&#60;br /&#62;
org.apache.cassandra.db.UnknownColumnFamilyException: Couldn't find cfId=1012&#60;/p&#62;
&#60;p&#62;To confirm everything is on the same schema, verify that 'describe cluster;' only returns one schema version.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alexliu on "Schema versions disagree"</title>
			<link>http://www.datastax.com/support-forums/topic/schema-versions-disagree#post-7054</link>
			<pubDate>Mon, 22 Oct 2012 16:27:15 +0000</pubDate>
			<dc:creator>alexliu</dc:creator>
			<guid isPermaLink="false">7054@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;To correct this problem:&#60;/p&#62;
&#60;p&#62;Using the Cassandra CLI, enter the DESCRIBE CLUSTER command. The output contains the IDs of the schema versions and their corresponding nodes. Remove the problematic schema and migration sstables in your system keyspace as described on the Cassandra wiki.&#60;/p&#62;
&#60;p&#62;To prevent this problem:&#60;/p&#62;
&#60;p&#62;Perform schema changes one at a time, at a steady pace, and from the same node.&#60;/p&#62;
&#60;p&#62;If you can't resolve the issue, please attach the script, we can do more investigation.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schalla on "Schema versions disagree"</title>
			<link>http://www.datastax.com/support-forums/topic/schema-versions-disagree#post-7051</link>
			<pubDate>Mon, 22 Oct 2012 14:26:42 +0000</pubDate>
			<dc:creator>schalla</dc:creator>
			<guid isPermaLink="false">7051@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I am calling &#34;describe cluster&#34; before and after the script. Before running the script, schema versions are consistent and ffter running the script, it creates Keyspace but exits with schema disagreement.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sven on "Schema versions disagree"</title>
			<link>http://www.datastax.com/support-forums/topic/schema-versions-disagree#post-7039</link>
			<pubDate>Sun, 21 Oct 2012 15:44:05 +0000</pubDate>
			<dc:creator>Sven</dc:creator>
			<guid isPermaLink="false">7039@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;At what point are you calling &#34;describe cluster&#34; Between creating the keyspace and creating the cf's, or after the script failed?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schalla on "Schema versions disagree"</title>
			<link>http://www.datastax.com/support-forums/topic/schema-versions-disagree#post-7024</link>
			<pubDate>Fri, 19 Oct 2012 18:03:57 +0000</pubDate>
			<dc:creator>schalla</dc:creator>
			<guid isPermaLink="false">7024@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I am using DSE-2.2 and trying to create few keyspaces and CF's in a 3 node cluster.&#60;br /&#62;
I am using cassandra-cli and passing a script which creates Keyspace and CF's. Script exits right after creating Keyspace and before creating CF's throwing the below.&#60;/p&#62;
&#60;p&#62;Schema versions disagree, (try again later). &#60;/p&#62;
&#60;p&#62;However, &#34;describe cluster;&#34; shows the same schema across the cluster.&#60;br /&#62;
What could be going wrong?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
