<?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>topic Re: Registering Hive UDF's (User Defined Functions) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321010#M91094</link>
    <description>Hi
&lt;BR /&gt;I am interesting in your job, can you export the job and send it to me? 
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
    <pubDate>Mon, 11 Jul 2011 13:34:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-07-11T13:34:24Z</dc:date>
    <item>
      <title>Registering Hive UDF's (User Defined Functions)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321009#M91093</link>
      <description>I have successfully set up and used a Hive input connector to connect to Hadoop - running in Amazon EMR (by using a JDBCInput connector and specifying all the required Hive/Hadoop libs). 
&lt;BR /&gt;The standard Hive queries work fine. 
&lt;BR /&gt;My only issue is that I cannot figure out how to register and use my UDF's as part of a job flow. 
&lt;BR /&gt;ie 
&lt;BR /&gt; 
&lt;PRE&gt;add jar s3://path/libs/my_lib.jar;&lt;BR /&gt;create temporary function my_func as 'mylib.MyFunction';&lt;BR /&gt;select my_func(col_a) from ...&lt;/PRE&gt; 
&lt;BR /&gt;My UDF queries successfully run in the 
&lt;B&gt;SQLBuilderDialog&lt;/B&gt; but when I attempt to run them as part of a job, the job returns almost instantly without error - with output being an empty file with the just the column headers. 
&lt;BR /&gt;Can someone please point in the correct direction for registering and using UDF's 
&lt;BR /&gt;Im using TOS 4.2.2</description>
      <pubDate>Sat, 16 Nov 2024 12:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321009#M91093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Registering Hive UDF's (User Defined Functions)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321010#M91094</link>
      <description>Hi
&lt;BR /&gt;I am interesting in your job, can you export the job and send it to me? 
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 11 Jul 2011 13:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321010#M91094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-11T13:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Registering Hive UDF's (User Defined Functions)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321011#M91095</link>
      <description>try putting the first two line "Add jar" and "create function" in seperate jdbc row calls and then issue the select using tjdbcinput. see if that helps.&lt;BR /&gt;KArthik</description>
      <pubDate>Fri, 02 Dec 2011 15:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321011#M91095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-02T15:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Registering Hive UDF's (User Defined Functions)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321012#M91096</link>
      <description>any solution?&lt;BR /&gt;I have the same issue when I'm trying to use a function stored in HIVE&lt;BR /&gt;How to register the function in hive session? with thiverow first? or another way to do?&lt;BR /&gt;In shell: first:&lt;BR /&gt;create temporary function findInMsg as 'com.r9.scrub.hive.FindInMessage'" &lt;BR /&gt;and after: select findInMsg('local',message) from table r&lt;BR /&gt;I'm trying to do the same with thiverow / thiveinput but it doesn't work&lt;BR /&gt;thiverow:&lt;BR /&gt;create temporary function findInMsg as 'com.scrub.hive.FindInMessage'&lt;BR /&gt; &amp;gt; subjob ok &lt;BR /&gt;&amp;gt; tinputrow&lt;BR /&gt;select&lt;BR /&gt;findInMsg('local',message),&lt;BR /&gt;from&lt;BR /&gt;    table r&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;BR /&gt;My error:&lt;BR /&gt;Exception in component tHiveInput_2&lt;BR /&gt;java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask&lt;BR /&gt;	at org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:194)</description>
      <pubDate>Fri, 24 Jan 2014 10:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321012#M91096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T10:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Registering Hive UDF's (User Defined Functions)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321013#M91097</link>
      <description>I know its a very very old thread but was there any solution found on this issue?</description>
      <pubDate>Wed, 12 Oct 2016 11:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Registering-Hive-UDF-s-User-Defined-Functions/m-p/2321013#M91097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T11:32:51Z</dc:date>
    </item>
  </channel>
</rss>

