<?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: Cassandra SStableloader - load key value instead of UUID</title>
		<link>http://www.datastax.com/support-forums/topic/cassandra-sstableloader-load-key-value-instead-of-uuid</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 11:23: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/cassandra-sstableloader-load-key-value-instead-of-uuid" rel="self" type="application/rss+xml" />

		<item>
			<title>kannanspec on "Cassandra SStableloader - load key value instead of UUID"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-sstableloader-load-key-value-instead-of-uuid#post-8906</link>
			<pubDate>Mon, 04 Feb 2013 18:17:54 +0000</pubDate>
			<dc:creator>kannanspec</dc:creator>
			<guid isPermaLink="false">8906@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;This is my table &#60;/p&#62;
&#60;p&#62;CREATE COLUMNFAMILY OM_CDMA_SECTOR_1 (&#60;br /&#62;
           ...   KEY ascii PRIMARY KEY,&#60;br /&#62;
           ...   '2012dec10' ascii,&#60;br /&#62;
           ...   '2012dec11' ascii,&#60;br /&#62;
           ...   '2012dec12' ascii,&#60;br /&#62;
           ...   '2012dec13' ascii,&#60;br /&#62;
           ...   '2012dec14' ascii,&#60;br /&#62;
           ...   '2012dec15' ascii,&#60;br /&#62;
           ...   '2012dec16' ascii&#60;br /&#62;
           ... ) &#60;/p&#62;
&#60;p&#62;I need to load the key column (primary key )from the file instead of UUID &#60;/p&#62;
&#60;p&#62;i replaced &#60;/p&#62;
&#60;p&#62;   //      ByteBuffer uuid = ByteBuffer.wrap(decompose(entry.CorrelationID));&#60;br /&#62;
           eventWriter.newRow(uuid);&#60;/p&#62;
&#60;p&#62;to &#60;/p&#62;
&#60;p&#62;eventWriter.addColumn(bytes(&#34;KEY&#34;),bytes(entry.KEY), timestamp);&#60;/p&#62;
&#60;p&#62;it gives me below error&#60;/p&#62;
&#60;p&#62;[kmookaia@sql-xcc-vna2d01 apache-cassandra-1.1.0]$ ./run.sh cdma_sector_136.txt&#60;br /&#62;
Exception in thread &#34;main&#34; java.lang.NullPointerException&#60;br /&#62;
	at org.apache.cassandra.io.sstable.AbstractSSTableSimpleWriter.addColumn(AbstractSSTableSimpleWriter.java:115)&#60;br /&#62;
	at org.apache.cassandra.io.sstable.AbstractSSTableSimpleWriter.addColumn(AbstractSSTableSimpleWriter.java:130)&#60;br /&#62;
	at SSTableGenerator.main(SSTableGenerator.java:62)&#60;/p&#62;
&#60;p&#62;how do i load key value from a file using SSTableLoader?&#60;/p&#62;
&#60;p&#62;Any help appriciated
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
