<?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: Permanently added UDF doesn't work with ODBC connection in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160808#M21095</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2337/kvasko.html" nodeid="2337"&gt;@Kevin Vasko&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/3068/jdere.html" nodeid="3068"&gt;@jdere&lt;/A&gt; Can you check if hive.server2.enable.doAs is set to True ?&lt;/P&gt;&lt;P&gt;Also, check this JIRA &lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/HIVE-5160" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-5160&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Which version of Hive you are using ? &lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2016 11:46:11 GMT</pubDate>
    <dc:creator>shishir_saxena4</dc:creator>
    <dc:date>2016-03-01T11:46:11Z</dc:date>
    <item>
      <title>Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160803#M21090</link>
      <description>&lt;P&gt;I'm using the Hortonworks Hive ODBC driver in my application.&lt;/P&gt;&lt;P&gt;I did: CREATE FUNCTION MyFunc as 'com.my.udf.class' USING JAR 'hdfs:///user/location/to/my.jar'; &lt;/P&gt;&lt;P&gt;That worked. Ehen I close my HiveCLI session and open it back up, I 
can immediately run SELECT myfunc(data) FROM tbl; and it loads the class
 and functions correctly. However it doesn't work inside of HUE or in my
 ODBC connection within my app.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 02:17:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160803#M21090</guid>
      <dc:creator>kvasko</dc:creator>
      <dc:date>2016-02-27T02:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160804#M21091</link>
      <description>&lt;P&gt;Can you give details of how it doesn't work?  Does it not find the function, or find the function and fail to execute it properly?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 02:38:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160804#M21091</guid>
      <dc:creator>gates</dc:creator>
      <dc:date>2016-02-27T02:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160805#M21092</link>
      <description>&lt;P&gt;Both Hue /ODBC make use of HiveServer2.  You might want to check the HiveServer2 logs to see if there are any errors when running these queries. Is the HDFS location of your JAR accessible to the "hive" user (or whatever user is running HiveServer2)?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 02:38:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160805#M21092</guid>
      <dc:creator>jdere</dc:creator>
      <dc:date>2016-02-27T02:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160806#M21093</link>
      <description>&lt;P&gt;Sorry, yeah using HUE or through my ODBC application it says it can't find the function. I'm logging into the application in HUE with the same username I am with through the HiveCLI. &lt;/P&gt;&lt;P&gt;To be specific: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error occurred executing hive query: Error while compiling statement: FAILED: SemanticException [Error 10011]:  Line 1:155 Invalid function&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 06:51:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160806#M21093</guid>
      <dc:creator>kvasko</dc:creator>
      <dc:date>2016-02-27T06:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160807#M21094</link>
      <description>&lt;P&gt;Logging in with the same username with Hue as I am with HiveCLI. Getting this error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error occurred executing hive query: Error while compiling 
statement: FAILED: SemanticException [Error 10011]: Line 1:155 Invalid 
function&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 06:56:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160807#M21094</guid>
      <dc:creator>kvasko</dc:creator>
      <dc:date>2016-02-27T06:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160808#M21095</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2337/kvasko.html" nodeid="2337"&gt;@Kevin Vasko&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/3068/jdere.html" nodeid="3068"&gt;@jdere&lt;/A&gt; Can you check if hive.server2.enable.doAs is set to True ?&lt;/P&gt;&lt;P&gt;Also, check this JIRA &lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/HIVE-5160" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-5160&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Which version of Hive you are using ? &lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:46:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160808#M21095</guid>
      <dc:creator>shishir_saxena4</dc:creator>
      <dc:date>2016-03-01T11:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160809#M21096</link>
      <description>&lt;P&gt;I'll check this. &lt;/P&gt;&lt;P&gt;I am using HDP 2.3.2 (sandbox) which I believe comes with Hive 1.2.1 so that defect *shouldn't* be the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:55:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160809#M21096</guid>
      <dc:creator>kvasko</dc:creator>
      <dc:date>2016-03-01T11:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160810#M21097</link>
      <description>&lt;P&gt;What database was the function created under (permanent functions are qualified with a database name). If you did not specify the DB name when you created it, it would have automatically used the current DB.  Do you see the fully qualified function name when you run SHOW FUNCTIONS?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 02:30:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160810#M21097</guid>
      <dc:creator>jdere</dc:creator>
      <dc:date>2016-03-02T02:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160811#M21098</link>
      <description>&lt;P&gt;I don't even see hive.server2.enable.doAs. Would it be under the Hive configuration settings?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 23:19:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160811#M21098</guid>
      <dc:creator>kvasko</dc:creator>
      <dc:date>2016-03-04T23:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160812#M21099</link>
      <description>&lt;P&gt;It was not created with a specific database. If I run SHOW FUNCTION within the HiveCLI it shows up as default.&amp;lt;myfunction&amp;gt;. If I run SHOW FUNCTION in Hue, the function does NOT show up even though I'm using the "default" database. Is there a way I can make it not be under "default." and just "&amp;lt;function&amp;gt;"? Hue/App using ODBC has no problem using those functions (e.g. count()).&lt;/P&gt;&lt;P&gt;If I add the jar file in Hue (one the left sidebar) and the function/class information it all works. &lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 23:21:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160812#M21099</guid>
      <dc:creator>kvasko</dc:creator>
      <dc:date>2016-03-04T23:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160813#M21100</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2337/kvasko.html" nodeid="2337"&gt;@Kevin Vasko&lt;/A&gt; It is in Summary section. Run as End User instead of Hive user.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 06:44:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160813#M21100</guid>
      <dc:creator>shishir_saxena4</dc:creator>
      <dc:date>2016-03-05T06:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160814#M21101</link>
      <description>&lt;P&gt;There was supposed to be a RELOAD FUNCTIONS command to refresh the function list if the function was created in a different environment from the current one like what you have done here. However it looks like this command was not working properly in HDP 2.3. It was fixed in &lt;A href="https://issues.apache.org/jira/browse/HIVE-13043"&gt;HIVE-13043&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The workaround for HDP 2.3 would be to restart HiveServer2, or to create the function in Hue/ODBC rather than in a separate HiveCLI.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 08:03:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160814#M21101</guid>
      <dc:creator>jdere</dc:creator>
      <dc:date>2016-03-05T08:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160815#M21102</link>
      <description>&lt;P&gt;Thanks,  found it and it was already set to true and that still wasn't the issue.&lt;/P&gt;&lt;P&gt;I went into hue and ran the create function command (same command as I did in HiveCLI ) and the command worked and I was able to run the function within hue. this to me looks like some type of context issue where the persistent function that is added in the CLI doesn't work in the other contexts (ODBC and Hue). I have no idea how to solve that.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 10:45:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160815#M21102</guid>
      <dc:creator>kvasko</dc:creator>
      <dc:date>2016-03-05T10:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Permanently added UDF doesn't work with ODBC connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160816#M21103</link>
      <description>&lt;P&gt;I can't seem to reply to your last comment but that was exactly the problem.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 10:46:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permanently-added-UDF-doesn-t-work-with-ODBC-connection/m-p/160816#M21103</guid>
      <dc:creator>kvasko</dc:creator>
      <dc:date>2016-03-05T10:46:23Z</dc:date>
    </item>
  </channel>
</rss>

