<?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: Inserting records in column family with Hive uses incorrect timestamp</title>
		<link>http://www.datastax.com/support-forums/topic/inserting-records-in-column-family-with-hive-uses-incorrect-timestamp</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 19:03:54 +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/inserting-records-in-column-family-with-hive-uses-incorrect-timestamp" rel="self" type="application/rss+xml" />

		<item>
			<title>Anonymous on "Inserting records in column family with Hive uses incorrect timestamp"</title>
			<link>http://www.datastax.com/support-forums/topic/inserting-records-in-column-family-with-hive-uses-incorrect-timestamp#post-1700</link>
			<pubDate>Wed, 18 Apr 2012 21:50:26 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1700@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks Joaquin,&#60;/p&#62;
&#60;p&#62;Had another crack at this with my specific db and script. Tested to make sure hive was picking up the correct unix_timestamp(). That was OK. Ran my script and found it was updating with the correct timestamp!!! Records that were not updated still showed the incorrect timestamp of 1970-01-16. &#60;/p&#62;
&#60;p&#62;I'm not sure what was happening here, but I don't think it was hive, something odd with my system! Please consider this closed.&#60;/p&#62;
&#60;p&#62;Thanks for your help.&#60;br /&#62;
regards Ross.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joaquin on "Inserting records in column family with Hive uses incorrect timestamp"</title>
			<link>http://www.datastax.com/support-forums/topic/inserting-records-in-column-family-with-hive-uses-incorrect-timestamp#post-1692</link>
			<pubDate>Wed, 18 Apr 2012 18:21:53 +0000</pubDate>
			<dc:creator>joaquin</dc:creator>
			<guid isPermaLink="false">1692@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;The script seems to have a lower precision than what is currently used by the cassandra-cli. The rest of the PortfolioDemo scripts do take this into account however.&#60;/p&#62;
&#60;p&#62;If you were trying to change the values, try doing this with CQL which would allow to you set and/or change timestamps.&#60;/p&#62;
&#60;p&#62;The cassandra-cli is typically seen and used as a basic monitoring/testing tool and unfortunately does not support custom timestamps.&#60;/p&#62;
&#60;p&#62;Do let us know if you have any further questions.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Joaquin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Inserting records in column family with Hive uses incorrect timestamp"</title>
			<link>http://www.datastax.com/support-forums/topic/inserting-records-in-column-family-with-hive-uses-incorrect-timestamp#post-1615</link>
			<pubDate>Fri, 13 Apr 2012 03:28:49 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1615@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Test case using PortfolioDemo.&#60;br /&#62;
The script 10_day_loss.q was run populating HistLoss.&#60;br /&#62;
cassandra-cli was then run with the following commands:&#60;/p&#62;
&#60;p&#62;[default@unknown] connect localhost/9160;&#60;br /&#62;
connect localhost/9160;&#60;br /&#62;
Connected to: &#34;Test Cluster&#34; on localhost/9160&#60;br /&#62;
[default@unknown] use PortfolioDemo;&#60;br /&#62;
use PortfolioDemo;&#60;br /&#62;
Authenticated to keyspace: PortfolioDemo&#60;br /&#62;
[default@PortfolioDemo] set HistLoss['100']['test']='test';&#60;br /&#62;
set HistLoss['100']['test']='test';&#60;br /&#62;
Value inserted.&#60;br /&#62;
Elapsed time: 23 msec(s).&#60;br /&#62;
[default@PortfolioDemo] get HistLoss[utf8('100')]&#60;br /&#62;
get HistLoss[utf8('100')];&#60;br /&#62;
=&#38;gt; (column=loss, value=-1492.8402867337113, timestamp=1334287269078)&#60;br /&#62;
=&#38;gt; (column=test, value=test, timestamp=1334287414757000)&#60;br /&#62;
=&#38;gt; (column=worst_date, value=2012-02-07, timestamp=1334287269078)&#60;br /&#62;
Returned 3 results.&#60;br /&#62;
Elapsed time: 14 msec(s).&#60;/p&#62;
&#60;p&#62;The timestamps for loss and worst_date are 1970-01-16 20:38:07.269&#60;br /&#62;
The time stamp for test is 2012-04-13 13:23:34.757&#60;/p&#62;
&#60;p&#62;Is there some setting required for Hive to insert the correct timestamps?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
