Re: Add external jars automatically

2013-03-13 Thread Alex Kozlov
If you look into ${HIVE_HOME}/bin/hive script there are multiple ways to add the jar. One of my favorite, besides the .hiverc file, has been to put the jar into ${HIVE_HOME}/auxlib dir. There always is the HIVE_AUX_JARS_PATH environment variable (but this introduces a dependency on the

Re: Lifecycle and Configuration of a hive UDF

2012-04-20 Thread Alex Kozlov
You might also look at http://www.quora .com/Hive-computing/How-are-SQL-type-analytic-and-windowing-functions-accomplished-in-Hadoop-Hivefor a way to utilize secondary sort for analytic windowing functions. RANK() OVER(...) will require grouping and sorting. While it can be done in the mapper or

Re: Hive equivalent of row_number()

2012-04-12 Thread Alex Kozlov
http://www.quora.com/Hive-computing/How-are-SQL-type-analytic-and-windowing-functions-accomplished-in-Hadoop-Hive -- Alex K http://www.cloudera.com/company/press-center/hadoop-world-nyc/ On Thu, Apr 12, 2012 at 1:43 PM, Saurabh S saurab...@live.com wrote: I have a table with three columns, A,

Re: Hive assert()?

2011-05-26 Thread Alex Kozlov
1) Would `select count(1) from (query)` do the same thing? I am a bit confused what is the semantic of assert: is it just no rows or some kind of syntax error check? 2) Hive is not an OLTP and is not optimized for single row inserts (or updates for this matter). In a trivial implementation one