Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive >> mail # user >> Simple UDTF not working!! NPE in UDTFDesc.getUDTFName

Copy link to this message
Simple UDTF not working!! NPE in UDTFDesc.getUDTFName
Hi all,

 I have taken the generic udtf method in the contrib. examples directory
and modified it and added it as a jar in my classpath.

hive> add jar /homes/viraj/hiveudfs.jar;


hive> create temporary function GenIndex as 'hiveudfs.GenIndex';

Time taken: 1.664 seconds


hive> explain SELECT pageid, adid, index FROM  samplelist LATERAL VIEW
GenIndex(adinfo) adTable AS adid, index;

java.lang.ClassNotFoundException: hiveudfs.GenIndex

Continuing ...

java.lang.NullPointerException: target should not be null

Continuing ...

Failed with exception null

FAILED: Execution Error, return code 1 from


I looked at the stack trace in the hive.log



        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

Caused by: java.lang.NullPointerException


        ... 26 more


So what should the name of this UDTF be?

Thanks Viraj

Paul Yang 2010-06-30, 18:21