hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zheng Shao <zsh...@gmail.com>
Subject Re: Hive and Hadoop streaming
Date Mon, 25 May 2009 01:28:52 GMT
How do your java map function receive the 4 columns?
I assume your java map function takes a WritableComparable key and Writable
value.

Zheng

2009/5/24 Manhee Jo <jo@nttdocomo.com>

>  I have some mappers already coded in Java. So I want to use it
> as much as possible in Hive environment.
> Then, how can I call a Java mapper to "select transform" in Hive?
> For example, what is wrong with the query below and why?
>
> INSERT OVERWRITE TABLE u_data_new
> SELECT
>   TRANSFORM (userid, movieid, rating, unixtime)
> *  USING 'java WeekdayMapper'
> *  AS (userid, movieid, rating, weekday)
> FROM u_data;
> Thank you.
>
>
> Regards,
> Manhee
>



-- 
Yours,
Zheng

Mime
View raw message