Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

What is the best way to register a jar containing UDF's ( Hue Pig Editor)

avatar
Frequent Visitor

What is the best way to register a jar containing UDF's ( Hue Pig Editor)

 

My jar is in HDFS @  /user/xxx/applications/fpds9/lib/dsx-core.jar;

 

REGISTER /user/xxx/applications/fpds9/lib/dsx-core.jar;

 

Running my pig script via the Pig Editor in Hue throws an error as it cannot find my UDF in the classpath.

2 ACCEPTED SOLUTIONS

avatar
Frequent Visitor

I figured out  a way to do it, right after posting. Added a resource as a file type to my jar and registered the jar in the script as usual.

View solution in original post

avatar
Super Guru

Glad to hear!

 

Posting since I started replying:

Hue needs to package the jar: http://gethue.tumblr.com/post/64707633719/hadoop-tutorial-use-pig-and-hive-with-hbase

 

 

View solution in original post

2 REPLIES 2

avatar
Frequent Visitor

I figured out  a way to do it, right after posting. Added a resource as a file type to my jar and registered the jar in the script as usual.

avatar
Super Guru

Glad to hear!

 

Posting since I started replying:

Hue needs to package the jar: http://gethue.tumblr.com/post/64707633719/hadoop-tutorial-use-pig-and-hive-with-hbase