hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saurabh Nanda <>
Subject Creating a UDF (was Hive SerDe?)
Date Tue, 14 Jul 2009 08:09:01 GMT
I'm trying to register a UDF to parse my log file format. Where can I find
documentation for creating and registering a UDF?

My attempts failed with this error:

hive> create temporary function process_line as 'LogProcessor';
FAILED: Unknown exception : Registering UDF Class class LogProcessor which
does not extends class org.apache.hadoop.hive.ql.exec.UDF

Specific questions:

1. Do I need to define the a particular function in the class? For example,
2. What arguments should that function accept?
3. What should be the return type of that function?
4. What if the function needs to return multiple values? Each value mapping
to a column in the table?


View raw message