<?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: UDF reflect is not allowed - beeline in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/UDF-reflect-is-not-allowed-beeline/m-p/155074#M117513</link>
    <description>&lt;P&gt;Hi Raja, the Reflect UDF is actually blacklisted by default when running queries through HiveServer2 (beeline, ODBC, JDBC connections), as it can be a security risk. See this JIRA, for example: &lt;A href="https://issues.apache.org/jira/browse/HIVE-8893"&gt;HIVE-8893&lt;/A&gt;. This works in hive CLI, because the hive CLI does not use HiveServer2. The JIRA is available in HDP 2.2.4 and higher.&lt;/P&gt;&lt;P&gt;You can check this by running this in beeline:&lt;/P&gt;&lt;PRE&gt;set hive.server2.builtin.udf.blacklist;&lt;/PRE&gt;&lt;P&gt;reflect will probably be listed there. You can remove it from the blacklist property and also make sure this property is empty:&lt;/P&gt;&lt;PRE&gt;hive.server2.builtin.udf.whitelist&lt;/PRE&gt;&lt;P&gt;Apply the changes and restart HiveServer2 and you should see the reflect UDF working.&lt;/P&gt;&lt;P&gt;See &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.server2.builtin.udf.whitelist"&gt;Apache Hive documentation&lt;/A&gt; on these properties for further info. &lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2016 20:15:37 GMT</pubDate>
    <dc:creator>agillan</dc:creator>
    <dc:date>2016-04-06T20:15:37Z</dc:date>
  </channel>
</rss>

