Hi - 

If you would like to "simply take an input String (Text) run some Java  and 
return a new (Text) by calling a function" then you may wish to consider using 
the "map" and "reduce" keywords directly from Hive and using a scripting 
language like Perl that contains your mapper and reducer code.

for example:

create external table some_input_table ( field_1 string ) row format (etc...);
create table your_next_table ( output_field_1 string, output_field_2 string, 
output_field_3 string );


from (
   from some_input_table i
     map i.field_1 using 'some_custom_mapper_code.pl' ) mapper_output
   insert overwrite table your_next_table
     reduce mapper_output.* using 'some_custom_reducer_code.pl' as 
output_field_1, output_field_2, output_field_3
;

--test it
select * from your_next_table ;

Hope that helps.

cheers,
Avram





On Tuesday, April 27, 2010, at 10:55AM, "Tim Robertson" 
<[email protected]> wrote:
>

Reply via email to