Home Forums Hortonworks Sandbox UDF for pig not working

Tagged: ,

This topic contains 3 replies, has 3 voices, and was last updated by  pranjal rajput 1 year, 9 months ago.

  • Creator
  • #17869

    i have created a UDF jar for use with pig with HDP VM on virtualbox.
    uploaded it using ‘select udf jar’ button on sandbox ui and clicked ‘add’.
    the statement – register ‘myudf.jar'; is generating following error
    2013-03-15 03:00:48,476 [main] INFO org.apache.pig.Main – Apache Pig version (rexported) compiled Jan 10 2013, 04:00:42
    2013-03-15 03:00:48,476 [main] INFO org.apache.pig.Main – Logging error messages to: /home/sandbox/hue/pig_1363341648473.log
    2013-03-15 03:00:48,916 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine – Connecting to hadoop file system at: file:///
    2013-03-15 03:00:49,817 [main] ERROR org.apache.pig.tools.grunt.Grunt – ERROR 2997: Encountered IOException. File does not exist: hdfs://sandbox:8020/tmp/udfs/’myudf.jar’
    Details at logfile: /home/sandbox/hue/pig_1363341648473.log

    however the file exists in the /tmp/udfs/ location.
    what could be the reason behind this? and how to resolve it?

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

  • Author
  • #18772

    many thanks for the response.
    i figured this ‘without quote’ thingy a while ago on my own.
    although the quotes were my mistake but it was taking too long to get community help on this. hence i switched back to bare bones pig and hadoop installations on ubuntu, instead of banging my head against HDP vm.
    however the IOException is ridiculously misleading.

    thanks peter and tedr.


    You have an error in your register statement. You can click on UDF jar and it will automatically register or use next statement (without quotes and semicolon)
    register myudf.jar



    Hi Pranjal,

    Thanks for trying the Hortonworks Sandbox.
    Check the persmissions on the UDF file, is it world readable? If not this could be the reason that Pig claims it is not there.


Viewing 3 replies - 1 through 3 (of 3 total)