hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manhee Jo ...@nttdocomo.com>
Subject Hive and Hadoop streaming
Date Mon, 25 May 2009 00:31:13 GMT
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
Mime
View raw message