<?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: Data migration from cassandra 0.6.1 to 1.0.8</title>
		<link>http://www.datastax.com/support-forums/topic/data-migration-from-cassandra-061-to-108</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 15:04:25 +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/data-migration-from-cassandra-061-to-108" rel="self" type="application/rss+xml" />

		<item>
			<title>joaquin on "Data migration from cassandra 0.6.1 to 1.0.8"</title>
			<link>http://www.datastax.com/support-forums/topic/data-migration-from-cassandra-061-to-108#post-1465</link>
			<pubDate>Thu, 29 Mar 2012 20:30:36 +0000</pubDate>
			<dc:creator>joaquin</dc:creator>
			<guid isPermaLink="false">1465@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Glad to hear!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Data migration from cassandra 0.6.1 to 1.0.8"</title>
			<link>http://www.datastax.com/support-forums/topic/data-migration-from-cassandra-061-to-108#post-1464</link>
			<pubDate>Thu, 29 Mar 2012 20:28:25 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1464@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks a lot, Joaquin.&#60;br /&#62;
It was indeed a permission issue. I chowned files and cassandra started successfully.&#60;/p&#62;
&#60;p&#62;Thanks again.&#60;br /&#62;
Nare.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joaquin on "Data migration from cassandra 0.6.1 to 1.0.8"</title>
			<link>http://www.datastax.com/support-forums/topic/data-migration-from-cassandra-061-to-108#post-1463</link>
			<pubDate>Thu, 29 Mar 2012 18:44:54 +0000</pubDate>
			<dc:creator>joaquin</dc:creator>
			<guid isPermaLink="false">1463@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;IOExceptions in Cassandra mean that the file couldn't be accessed. Could you ensure that the permissions are set accordingly?&#60;/p&#62;
&#60;p&#62;Were both installed via packages? Could you ensure that all the files under 1.0.8's /var/lib/cassandra directory are chown'd to cassandra:cassandra?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Joaquin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Data migration from cassandra 0.6.1 to 1.0.8"</title>
			<link>http://www.datastax.com/support-forums/topic/data-migration-from-cassandra-061-to-108#post-1448</link>
			<pubDate>Wed, 28 Mar 2012 21:05:02 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1448@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks for the reply, jbellis.&#60;/p&#62;
&#60;p&#62;Once on my test severs I succeeded to move data using first method. But when I tried it on my live server I got the following exception in cassandra's output.log.&#60;/p&#62;
&#60;p&#62; INFO 21:00:44,367 Loading schema version 7ad324f0-7909-11e1-0000-242d50cf1fff&#60;br /&#62;
java.lang.reflect.InvocationTargetException&#60;br /&#62;
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&#60;br /&#62;
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&#60;br /&#62;
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&#60;br /&#62;
        at java.lang.reflect.Method.invoke(Method.java:616)&#60;br /&#62;
        at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:160)&#60;br /&#62;
Caused by: java.io.IOError: java.io.IOException: Failed to delete /var/lib/cassandra/data/Monitis/AdditionalResults-2576-Data.db&#60;br /&#62;
        at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:371)&#60;br /&#62;
        at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:193)&#60;br /&#62;
        at org.apache.cassandra.service.AbstractCassandraDaemon.init(AbstractCassandraDaemon.java:257)&#60;br /&#62;
        ... 5 more&#60;br /&#62;
Caused by: java.io.IOException: Failed to delete /var/lib/cassandra/data/Monitis/AdditionalResults-2576-Data.db&#60;br /&#62;
        at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:54)&#60;br /&#62;
        at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:44)&#60;br /&#62;
        at org.apache.cassandra.io.sstable.SSTable.delete(SSTable.java:135)&#60;br /&#62;
        at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:367)&#60;br /&#62;
        ... 7 more&#60;br /&#62;
Cannot load daemon&#60;br /&#62;
Service exit with a return value of 3
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jbellis on "Data migration from cassandra 0.6.1 to 1.0.8"</title>
			<link>http://www.datastax.com/support-forums/topic/data-migration-from-cassandra-061-to-108#post-1440</link>
			<pubDate>Wed, 28 Mar 2012 01:32:09 +0000</pubDate>
			<dc:creator>jbellis</dc:creator>
			<guid isPermaLink="false">1440@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Approach 1 is going to be your best bet.  (sstable2json changed its format between 0.6 and 1.0; it's intended to be a debugging tool, not a migration assistant.)&#60;/p&#62;
&#60;p&#62;You need all the sstable files, not just the Data ones.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Data migration from cassandra 0.6.1 to 1.0.8"</title>
			<link>http://www.datastax.com/support-forums/topic/data-migration-from-cassandra-061-to-108#post-1438</link>
			<pubDate>Tue, 27 Mar 2012 22:06:07 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1438@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi.&#60;br /&#62;
We've got some technical issues with cassandra data migration from version 0.6.1 to 1.0.8 and I would appreciate very much if someone helps me.&#60;/p&#62;
&#60;p&#62;I tried to migrate data in 2 ways and both failed.&#60;/p&#62;
&#60;p&#62;1. I stopped cassandra 1.0.8 server, deleted commitlog files, added *.Data files from cassandra 0.6.1 server and stared cassandra 1.0.8. I didn't get any error but neither I got the results I wanted.&#60;br /&#62;
2. I used sstables2json tool to export data from cassandra 0.6.1. For big sstables I got ouofmemory error, for small ones I succeeded to export data as json and store it in a file. I tried to import data from these json files  on cassandra 1.0.8 using json2stable tool but I got exception like this:&#60;/p&#62;
&#60;p&#62;java.lang.NumberFormatException: Non-hex characters in 8abbdda0-8141-11e0-9e5c-0019d10404cb&#60;br /&#62;
        at org.apache.cassandra.utils.Hex.hexToBytes(Hex.java:59)&#60;br /&#62;
        at org.apache.cassandra.utils.ByteBufferUtil.hexToBytes(ByteBufferUtil.java:492)&#60;br /&#62;
        at org.apache.cassandra.tools.SSTableImport.importUnsorted(SSTableImport.java:279)&#60;br /&#62;
        at org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:255)&#60;br /&#62;
        at org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:479)&#60;br /&#62;
ERROR: Non-hex characters in 8abbdda0-8141-11e0-9e5c-0019d10404cb&#60;/p&#62;
&#60;p&#62;The columnfamily on 0.6.1 is declared in storage-conf.xml as follows:&#60;/p&#62;
&#60;p&#62;&#38;lt;ColumnFamily Name=&#34;MonitorResults&#34; ColumnType=&#34;Super&#34; CompareWith=&#34;UTF8Type&#34;  CompareSubcolumnsWith=&#34;UTF8Type&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;On 1.0.8 I created the columnfamily from command-line client using the following command:&#60;/p&#62;
&#60;p&#62;create column family MonitorResults with column_type=Super and comparator=UTF8Type and subcomparator=UTF8Type;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
