<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question PIG UDF ERROR in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-UDF-ERROR/m-p/143112#M28020</link>
    <description>&lt;P&gt;I managed to create a UDF, successfully compiled it and packaged it in a customudf.jar file that is located here on a HDP 2.4 sandbox: /user/maria_dev/customudf.jar. I start my PIG script with &lt;/P&gt;&lt;P&gt;REGISTER customudf.jar &lt;/P&gt;&lt;P&gt;...and I created a entry the web interface for UDF as follows: &lt;/P&gt;&lt;DIV&gt;
  &lt;DIV&gt;
    &lt;H3&gt;UDFs&lt;/H3&gt;
    
&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;  
    
 
      

        
Name:  customudf&lt;/P&gt;&lt;P&gt; 
        
Path:  /user/maria_dev/customudf.jar&lt;/P&gt;&lt;P&gt; 
        
Owner : maria_dev&lt;/P&gt;&lt;P&gt;Yet, when I run my PIG script the line customudf.xformation(f1) generates a non descript error:&lt;/P&gt;&lt;PRE&gt;ERROR org.apache.pig.tools.grunt.Grunt - ERROR 101: file 'customudf.jar' does not exist.&lt;/PRE&gt;&lt;P&gt;What am I missing?&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2016 00:37:30 GMT</pubDate>
    <dc:creator>maturcot</dc:creator>
    <dc:date>2016-05-12T00:37:30Z</dc:date>
    <item>
      <title>PIG UDF ERROR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-UDF-ERROR/m-p/143112#M28020</link>
      <description>&lt;P&gt;I managed to create a UDF, successfully compiled it and packaged it in a customudf.jar file that is located here on a HDP 2.4 sandbox: /user/maria_dev/customudf.jar. I start my PIG script with &lt;/P&gt;&lt;P&gt;REGISTER customudf.jar &lt;/P&gt;&lt;P&gt;...and I created a entry the web interface for UDF as follows: &lt;/P&gt;&lt;DIV&gt;
  &lt;DIV&gt;
    &lt;H3&gt;UDFs&lt;/H3&gt;
    
&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;  
    
 
      

        
Name:  customudf&lt;/P&gt;&lt;P&gt; 
        
Path:  /user/maria_dev/customudf.jar&lt;/P&gt;&lt;P&gt; 
        
Owner : maria_dev&lt;/P&gt;&lt;P&gt;Yet, when I run my PIG script the line customudf.xformation(f1) generates a non descript error:&lt;/P&gt;&lt;PRE&gt;ERROR org.apache.pig.tools.grunt.Grunt - ERROR 101: file 'customudf.jar' does not exist.&lt;/PRE&gt;&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 00:37:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-UDF-ERROR/m-p/143112#M28020</guid>
      <dc:creator>maturcot</dc:creator>
      <dc:date>2016-05-12T00:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: PIG UDF ERROR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-UDF-ERROR/m-p/143113#M28021</link>
      <description>&lt;P&gt;I finally got it to work by changing two things (not sure which of the two really helped or to what extent):&lt;/P&gt;&lt;P&gt;1) Changed the UDF name from customudf to customudf.jar&lt;/P&gt;&lt;P&gt;2) Change the REGISTER line to the following:&lt;/P&gt;&lt;P&gt;REGISTER 'hdfs:///user/maria_dev/customudf.jar&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 19:48:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-UDF-ERROR/m-p/143113#M28021</guid>
      <dc:creator>maturcot</dc:creator>
      <dc:date>2016-05-12T19:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: PIG UDF ERROR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-UDF-ERROR/m-p/143114#M28022</link>
      <description>&lt;P&gt;this works for me just by adding hdfs:/// in the path without changing file to .jar&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 05:38:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-UDF-ERROR/m-p/143114#M28022</guid>
      <dc:creator>milindmore</dc:creator>
      <dc:date>2017-03-15T05:38:27Z</dc:date>
    </item>
  </channel>
</rss>

