<?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 Re: Register UDF in PIG in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Register-UDF-in-PIG/m-p/135979#M56064</link>
    <description>&lt;P&gt;Here's an example I'm using piggybank UDF library, jar is on local filesystem&lt;/P&gt;&lt;PRE&gt;REGISTER /usr/hdp/current/pig-client/piggybank.jar;

A = LOAD 'input' USING PigStorage();
STORE A INTO 'output' USING org.apache.pig.piggybank.storage.MultiStorage('output', '0');&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Mar 2017 19:44:53 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2017-03-03T19:44:53Z</dc:date>
    <item>
      <title>Register UDF in PIG</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Register-UDF-in-PIG/m-p/135978#M56063</link>
      <description>&lt;P&gt;Hi, I am started to use the Sandbox and I am quite confused how to register my Java UDF in Pig. I tried to put the jar file into the HDFS and in the docker image too, but I always get the same error: 
ERROR 101: file 'myudf.jar' does not exist.&lt;/P&gt;&lt;P&gt;Should I put the file in the cent os file system? And if the answer is yes, than how can I do it?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zsoka&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 16:27:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Register-UDF-in-PIG/m-p/135978#M56063</guid>
      <dc:creator>zsokaevakovacs</dc:creator>
      <dc:date>2017-03-03T16:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Register UDF in PIG</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Register-UDF-in-PIG/m-p/135979#M56064</link>
      <description>&lt;P&gt;Here's an example I'm using piggybank UDF library, jar is on local filesystem&lt;/P&gt;&lt;PRE&gt;REGISTER /usr/hdp/current/pig-client/piggybank.jar;

A = LOAD 'input' USING PigStorage();
STORE A INTO 'output' USING org.apache.pig.piggybank.storage.MultiStorage('output', '0');&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Mar 2017 19:44:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Register-UDF-in-PIG/m-p/135979#M56064</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-03T19:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Register UDF in PIG</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Register-UDF-in-PIG/m-p/135980#M56065</link>
      <description>&lt;P&gt;&lt;A href="https://martin.atlassian.net/wiki/x/C4BRAQ" target="_blank"&gt;https://martin.atlassian.net/wiki/x/C4BRAQ&lt;/A&gt; shows an example (and old one that I did back with Hue) of loading the jar file into HDFS and then registering it like in the below example.&lt;/P&gt;&lt;PRE&gt;REGISTER 'hdfs:///user/hue/shared/pig/udfs/exampleudf.jar';
DEFINE SIMPLEUPPER exampleudf.UPPER();
typing_line = LOAD '/user/hue/testData/typingText.txt' AS (row:chararray);
upper_typing_line = FOREACH typing_line GENERATE SIMPLEUPPER(row);
DUMP upper_typing_line;&lt;/PRE&gt;&lt;P&gt;Good luck &amp;amp; happy Hadooping!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 23:23:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Register-UDF-in-PIG/m-p/135980#M56065</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2017-03-03T23:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Register UDF in PIG</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Register-UDF-in-PIG/m-p/135981#M56066</link>
      <description>&lt;P&gt;Looks like a couple of good answers.  Please check out &lt;A href="https://martin.atlassian.net/wiki/x/AunyBQ" target="_blank"&gt;https://martin.atlassian.net/wiki/x/AunyBQ&lt;/A&gt; and if one of these answer helps you the "best", would you mind "Accepting" it??&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:43:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Register-UDF-in-PIG/m-p/135981#M56066</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2017-04-10T20:43:38Z</dc:date>
    </item>
  </channel>
</rss>

