<?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: Importing data into Cassandra from mysql when Column family already exist</title>
		<link>http://www.datastax.com/support-forums/topic/importing-data-into-cassandra-from-mysql-when-column-family-already-exist</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 14:38:35 +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/importing-data-into-cassandra-from-mysql-when-column-family-already-exist" rel="self" type="application/rss+xml" />

		<item>
			<title>khahn on "Importing data into Cassandra from mysql when Column family already exist"</title>
			<link>http://www.datastax.com/support-forums/topic/importing-data-into-cassandra-from-mysql-when-column-family-already-exist#post-8364</link>
			<pubDate>Fri, 11 Jan 2013 16:18:56 +0000</pubDate>
			<dc:creator>khahn</dc:creator>
			<guid isPermaLink="false">8364@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I hope this helps you: &#60;a href=&#34;http://www.datastax.com/docs/1.2/cql_cli/cql/COPY#cqlsh-copy-to-from&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/docs/1.2/cql_cli/cql/COPY#cqlsh-copy-to-from&#60;/a&#62;. Also a feature of Cassandra 1.1.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Importing data into Cassandra from mysql when Column family already exist"</title>
			<link>http://www.datastax.com/support-forums/topic/importing-data-into-cassandra-from-mysql-when-column-family-already-exist#post-8194</link>
			<pubDate>Fri, 28 Dec 2012 10:36:37 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">8194@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am trying to append to a column family in Cassandra by importing data from my sql using sqoop. But looks like I need to change data type of all column in column family to Text\varchar . Is there any other way through which I can import data to an existing column family in Cassandra. Appreciate you help. please find err I am getting below:&#60;/p&#62;
&#60;p&#62;1.) Sqoop statement:&#60;br /&#62;
 bin/dse sqoop import --connect jdbc:mysql://mysqlURL/sqoopCassandraTest --username root --password root --outdir /home/user/workDir/sqoopTest/  --table sqoopDataTypeTest --cassandra-keyspace sqooptest --cassandra-column-family dataTypeTest  --cassandra-thrift-host localhost --split-by id --append&#60;br /&#62;
2.) Mapper error:&#60;/p&#62;
&#60;p&#62;12/12/28 16:07:57 INFO mapred.JobClient: Task Id : attempt_201212261607_0061_m_000000_1, Status : FAILED&#60;br /&#62;
java.io.IOException: InvalidRequestException(why:Expected 4 or 0 byte int (1))&#60;br /&#62;
        at org.apache.cassandra.hadoop.ColumnFamilyRecordWriter$RangeClient.run(ColumnFamilyRecordWriter.java:316)&#60;br /&#62;
Caused by: InvalidRequestException(why:Expected 4 or 0 byte int (1))&#60;br /&#62;
        at org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra.java:20253)&#60;br /&#62;
        at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)&#60;br /&#62;
        at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra.java:922)&#60;br /&#62;
        at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:908)&#60;br /&#62;
        at org.apache.cassandra.hadoop.ColumnFamilyRecordWriter$RangeClient.run(ColumnFamilyRecordWriter.java:308)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
