<?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; User Favorites: ernipur</title>
		<link><a href='http://www.datastax.com/support-forums/profile/ernipur'>ernipur</a></link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 14:32:40 +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/profile/" 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>ernipur 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>ernipur</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>
		<item>
			<title>ernipur on "Using sqoop with --query option to import data into Cassandra column family doesn&#039;t seem to wor"</title>
			<link>http://www.datastax.com/support-forums/topic/using-sqoop-with-query-option-to-import-data-into-cassandra-column-family-doesnt-seem-to-work#post-8154</link>
			<pubDate>Thu, 27 Dec 2012 12:05:44 +0000</pubDate>
			<dc:creator>ernipur</dc:creator>
			<guid isPermaLink="false">8154@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I would rather suggest to use outdir switch. As per my experience looks like RBDMS column name and Cassandra column name should be same for input to be successful. Some thing like this should work.&#60;/p&#62;
&#60;p&#62;dse sqoop import --connect jdbc:mysql://db.server.address/schema_name   --username user --p  --outdir /some/output/dir/ --query &#34;select x, y, z from table where cond1 and cond2 and \$CONDITIONS&#34;  --target-dir /some/dir   --split-by x   --cassandra-keyspace  cks1  --cassandra-column-family ccf1 --cassandra-row-key x --cassandra-thrift-host 127.0.0.1 --append&#60;/p&#62;
&#60;p&#62;Thanks ,&#60;/p&#62;
&#60;p&#62;_Nipur
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cartera_alex on "Using sqoop with --query option to import data into Cassandra column family doesn&#039;t seem to wor"</title>
			<link>http://www.datastax.com/support-forums/topic/using-sqoop-with-query-option-to-import-data-into-cassandra-column-family-doesnt-seem-to-work#post-7098</link>
			<pubDate>Wed, 24 Oct 2012 15:18:31 +0000</pubDate>
			<dc:creator>cartera_alex</dc:creator>
			<guid isPermaLink="false">7098@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm trying to use sqoop to import some data from a MySQL database into a Cassandra column family.  I've been able to do this successfully when I used the --table option (like shown in the sqoop demo in the docs), but using --query option doesn't seem to work.&#60;/p&#62;
&#60;p&#62;If I run a command like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;dse sqoop import --connect jdbc:mysql://db.server.address/schema_name --username user -P --query &#38;quot;select x, y, z from table where cond1 and cond2 and \$CONDITIONS&#38;quot; --split-by x --cassandra-keyspace cks1 --cassandra-column-family ccf1 --cassandra-row-key x --cassandra-thrift-host 127.0.0.1&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;it fails and tells me that --target-dir option must be specified.&#60;/p&#62;
&#60;p&#62;If I then add the --target-dir option like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;dse sqoop import --connect jdbc:mysql://db.server.address/schema_name --username user -P --query &#38;quot;select x, y, z from table where cond1 and cond2 and \$CONDITIONS&#38;quot; --split-by x --target-dir /some/dir --cassandra-keyspace cks1 --cassandra-column-family ccf1 --cassandra-row-key x --cassandra-thrift-host 127.0.0.1&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;the job runs, but does not import any records.&#60;/p&#62;
&#60;p&#62;Running this import without the cassandra options works and dumps the data into CFS.&#60;/p&#62;
&#60;p&#62;Am I doing something wrong or is it just not possible to import directly into a Cassandra column family using the --query option?&#60;/p&#62;
&#60;p&#62;I am using DSE 2.2.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
