<?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 Impala view based on UDF in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Impala-view-based-on-UDF/m-p/278878#M208294</link>
    <description>&lt;P&gt;we have a beeline process that inserts data into a hive table&lt;/P&gt;
&lt;P&gt;we can only access the table via impala views&lt;/P&gt;
&lt;P&gt;so when the beeline job is done,&lt;/P&gt;
&lt;P&gt;we want to refresh the tables and select rows from the table via impala views&lt;/P&gt;
&lt;P&gt;could we write a user defined function that&lt;/P&gt;
&lt;P&gt;1. refreshes the table in impala&lt;/P&gt;
&lt;P&gt;2. selects * from the refreshed table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;call that UDF from an impala view&lt;/P&gt;</description>
    <pubDate>Sat, 05 Oct 2019 14:27:51 GMT</pubDate>
    <dc:creator>ChineduLB</dc:creator>
    <dc:date>2019-10-05T14:27:51Z</dc:date>
    <item>
      <title>Impala view based on UDF</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-view-based-on-UDF/m-p/278878#M208294</link>
      <description>&lt;P&gt;we have a beeline process that inserts data into a hive table&lt;/P&gt;
&lt;P&gt;we can only access the table via impala views&lt;/P&gt;
&lt;P&gt;so when the beeline job is done,&lt;/P&gt;
&lt;P&gt;we want to refresh the tables and select rows from the table via impala views&lt;/P&gt;
&lt;P&gt;could we write a user defined function that&lt;/P&gt;
&lt;P&gt;1. refreshes the table in impala&lt;/P&gt;
&lt;P&gt;2. selects * from the refreshed table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;call that UDF from an impala view&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 14:27:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-view-based-on-UDF/m-p/278878#M208294</guid>
      <dc:creator>ChineduLB</dc:creator>
      <dc:date>2019-10-05T14:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Impala view based on UDF</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-view-based-on-UDF/m-p/278892#M208304</link>
      <description>&lt;P&gt;So basically a situation where Hive is updating a table and impala clients are querying same table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes the impala queries throw missing hdfs files exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do we handle this&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 19:07:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-view-based-on-UDF/m-p/278892#M208304</guid>
      <dc:creator>ChineduLB</dc:creator>
      <dc:date>2019-10-05T19:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Impala view based on UDF</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-view-based-on-UDF/m-p/280441#M208846</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/32170"&gt;@ChineduLB&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;UDFs let you&amp;nbsp;code your own application logic for processing column values during an Impala query. Adding a refresh/invalidate to it could cause unexpected behavior during value processing.&lt;/P&gt;&lt;P&gt;A general recommendation for Invalidate metadata/Refresh is to execute it after the ingestion finished. This way the Impala user does not have to worry about the staleness of the metadata. There is a blogpost on how to handle "Fast Data" and make it available to Impala in batches:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.cloudera.com/how-to-ingest-and-query-fast-data-with-impala-without-kudu/" target="_blank"&gt;https://blog.cloudera.com/how-to-ingest-and-query-fast-data-with-impala-without-kudu/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, just wanted to mention that the Invalidate metadata/Refresh can be executed from beeline as well, just need to connect from beeline to Impala, this blogpost has the details:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ericlin.me/2017/04/how-to-use-beeline-to-connect-to-impala/" target="_blank"&gt;https://www.ericlin.me/2017/04/how-to-use-beeline-to-connect-to-impala/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 08:26:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-view-based-on-UDF/m-p/280441#M208846</guid>
      <dc:creator>tmater</dc:creator>
      <dc:date>2019-10-17T08:26:30Z</dc:date>
    </item>
  </channel>
</rss>

