<?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: Simple Hive Queries Failing</title>
		<link>http://www.datastax.com/support-forums/topic/simple-hive-queries-failing</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 21:51:27 +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/simple-hive-queries-failing" rel="self" type="application/rss+xml" />

		<item>
			<title>zznate on "Simple Hive Queries Failing"</title>
			<link>http://www.datastax.com/support-forums/topic/simple-hive-queries-failing#post-245</link>
			<pubDate>Thu, 30 Jun 2011 16:51:07 +0000</pubDate>
			<dc:creator>zznate</dc:creator>
			<guid isPermaLink="false">245@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;In combination with BRISK-230, yes. We are working to resolve this right now and should have a fix available in master and brisk1 branches shortly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>efalcao on "Simple Hive Queries Failing"</title>
			<link>http://www.datastax.com/support-forums/topic/simple-hive-queries-failing#post-241</link>
			<pubDate>Wed, 29 Jun 2011 14:01:02 +0000</pubDate>
			<dc:creator>efalcao</dc:creator>
			<guid isPermaLink="false">241@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;anything else? are all the 3 issues above stemming from int/bigint issues?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Yewei on "Simple Hive Queries Failing"</title>
			<link>http://www.datastax.com/support-forums/topic/simple-hive-queries-failing#post-239</link>
			<pubDate>Tue, 28 Jun 2011 21:13:03 +0000</pubDate>
			<dc:creator>Yewei</dc:creator>
			<guid isPermaLink="false">239@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I believe this is a bug in our system. I will create a ticket for this. The issue of using BigInt and query returning NULL has been reported and worked on, please refer to Brisk-227. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://datastax.jira.com/browse/BRISK-227&#34; rel=&#34;nofollow&#34;&#62;https://datastax.jira.com/browse/BRISK-227&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks. &#60;/p&#62;
&#60;p&#62;Yewei
&#60;/p&#62;</description>
		</item>
		<item>
			<title>efalcao on "Simple Hive Queries Failing"</title>
			<link>http://www.datastax.com/support-forums/topic/simple-hive-queries-failing#post-237</link>
			<pubDate>Tue, 28 Jun 2011 20:23:26 +0000</pubDate>
			<dc:creator>efalcao</dc:creator>
			<guid isPermaLink="false">237@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Finally, I can't seem to get any CounterColumn data from cassandra into hive...here is my last effort:&#60;/p&#62;
&#60;p&#62;ubuntu@ip-10-88-197-147:~$ brisk hive&#60;br /&#62;
Hive history file=/tmp/ubuntu/hive_job_log_ubuntu_201106282022_587940389.txt&#60;br /&#62;
hive&#38;gt; drop table Metrics1m;&#60;br /&#62;
OK&#60;br /&#62;
Time taken: 0.678 seconds&#60;br /&#62;
hive&#38;gt; CREATE EXTERNAL TABLE Metrics1m&#60;br /&#62;
    &#38;gt;       (row_key string, column_name int, value int)&#60;br /&#62;
    &#38;gt;       STORED BY 'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'&#60;br /&#62;
    &#38;gt; WITH SERDEPROPERTIES (&#34;cassandra.ks.name&#34; = &#34;TRProd&#34;);&#60;br /&#62;
OK&#60;br /&#62;
Time taken: 0.544 seconds&#60;br /&#62;
hive&#38;gt; select * from Metrics1m;&#60;br /&#62;
OK&#60;br /&#62;
Failed with exception java.io.IOException:java.lang.NullPointerException&#60;br /&#62;
Time taken: 0.89 seconds&#60;br /&#62;
hive&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>efalcao on "Simple Hive Queries Failing"</title>
			<link>http://www.datastax.com/support-forums/topic/simple-hive-queries-failing#post-236</link>
			<pubDate>Tue, 28 Jun 2011 19:37:16 +0000</pubDate>
			<dc:creator>efalcao</dc:creator>
			<guid isPermaLink="false">236@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I've gotten the portfolio demo running before and now i've set up a 4 node (2 Cassandra, 2 Brisk) cluster running inside of EC2. Things seem to be working well, but I'm running into problems with simple hive queries, here is an example session:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
ubuntu@ip-10-88-197-147:/tmp/ubuntu$ brisk hive&#60;br /&#62;
Hive history file=/tmp/ubuntu/hive_job_log_ubuntu_201106281921_318487041.txt&#60;br /&#62;
hive&#38;gt; drop table Timelines;&#60;br /&#62;
OK&#60;br /&#62;
Time taken: 0.714 seconds&#60;br /&#62;
hive&#38;gt; CREATE EXTERNAL TABLE Timelines&#60;br /&#62;
    &#38;gt;       (row_key string, column_name string, value string)&#60;br /&#62;
    &#38;gt;       STORED BY 'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'&#60;br /&#62;
    &#38;gt; WITH SERDEPROPERTIES (&#34;cassandra.ks.name&#34; = &#34;TRProd&#34;);&#60;br /&#62;
OK&#60;br /&#62;
Time taken: 0.855 seconds&#60;br /&#62;
hive&#38;gt; select * from Timelines limit=10;&#60;br /&#62;
FAILED: Parse Error: line 1:29 mismatched input '=' expecting Number in limit clause&#60;/p&#62;
&#60;p&#62;hive&#38;gt; select * from Timelines limit 10;&#60;br /&#62;
OK&#60;br /&#62;
s:1116:0	&#38;lt;@�~�5��@Ɩ6�	85546918847070208&#60;br /&#62;
s:1116:0	gXuB�7��YKr�O�&#38;gt;	85549591134617601&#60;br /&#62;
s:1116:0	�����7��}���a	85550274655174656&#60;br /&#62;
s:1116:0	�H��7����JQ�ç	85550611818496000&#60;br /&#62;
s:1116:0	6ν�8��:�e�q�	85552055397253120&#60;br /&#62;
s:1116:0	Hc���:�����O��A	85555894108176384&#60;br /&#62;
s:1116:0	�i�:��������	85557110934474752&#60;br /&#62;
s:1116:0	���&#38;lt;��l�^���	85559776351748096&#60;br /&#62;
s:1116:0	p4�=���~���]	85561406514135040&#60;br /&#62;
s:1116:0	}K�.�&#38;gt;��m^��@   85563216570228736&#60;br /&#62;
Time taken: 4.166 seconds&#60;br /&#62;
hive&#38;gt; select * from Timelines limit 10;&#60;br /&#62;
OK&#60;br /&#62;
Failed with exception java.io.IOException:java.lang.NullPointerException&#60;br /&#62;
Time taken: 0.19 seconds&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;What amusing is that the second query fails (hrm). Also, Any query that causes a mapreduce job to be created fails. Here is a backtrace I see on the JobTracker Page:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
java.util.NoSuchElementException&#60;br /&#62;
	at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1115)&#60;br /&#62;
	at java.util.TreeMap$EntryIterator.next(TreeMap.java:1153)&#60;br /&#62;
	at java.util.TreeMap$EntryIterator.next(TreeMap.java:1148)&#60;br /&#62;
	at org.apache.hadoop.hive.cassandra.input.HiveCassandraStandardColumnInputFormat$2.next(HiveCassandraStandardColumnInputFormat.java:168)&#60;br /&#62;
	at org.apache.hadoop.hive.cassandra.input.HiveCassandraStandardColumnInputFormat$2.next(HiveCassandraStandardColumnInputFormat.java:111)&#60;br /&#62;
	at org.apache.hadoop.hive.ql.io.HiveRecordReader.doNext(HiveRecordReader.java:66)&#60;br /&#62;
	at org.apache.hadoop.hive.ql.io.HiveRecordReader.doNext(HiveRecordReader.java:32)&#60;br /&#62;
	at org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader.next(HiveContextAwareRecordReader.java:67)&#60;br /&#62;
	at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.moveToNext(MapTask.java:236)&#60;br /&#62;
	at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.next(MapTask.java:216)&#60;br /&#62;
	at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:48)&#60;br /&#62;
	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:435)&#60;br /&#62;
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:371)&#60;br /&#62;
	at org.apache.hadoop.mapred.Child$4.run(Child.java:259)&#60;br /&#62;
	at java.security.AccessController.doPrivileged(Native Method)&#60;br /&#62;
	at javax.security.auth.Subject.doAs(Subject.java:416)&#60;br /&#62;
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059)&#60;br /&#62;
	at org.apache.hadoop.mapred.Child.main(Child.java:253)&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Also, I'm curious to find out how best to represent cassandra UUID's when doing hive jobs...That's a vague question, but yeah, just wondering. I've tried making it a bigint and it just comes back as NULL
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
