Grokbase Groups Hive user March 2011
Hey all,

We use Amazon's elastic mapreduce and Hive 0.7 to run analytics queries, and
I'm having problems dynamically adding functions for use in the thrift

I want to add a jar, add a function, then execute a query.

Using ruby as the example, I've tried:

Hive.connect(@url, @port) do |connection|
connection.execute(<ADD JAR and FUNCTION>)
results = connection.fetch(query)
but the function is not available between calls.

So I tried prepending the query with the function creation calls, but then I
don't get any data back from hive (simply an empty array).

Could someone direct me to the best way to add functions for thrift queries?
Honestly I'd rather add them permanently on startup, but I can't find a way
to do that either.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
groupuser @
categorieshive, hadoop
postedMar 24, '11 at 8:36p
activeMar 28, '11 at 3:18p



site design / logo © 2021 Grokbase