<?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: Is there is any method to read property config file from impala UDF? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50156#M15174</link>
    <description>Hi Akhil,&lt;BR /&gt;It is technically possible to read files from an Impala C++ UDF, since we&lt;BR /&gt;don't sandbox UDFs. However, I would strongly recommend against this&lt;BR /&gt;because it can lead to resource usage problems and any mistakes can&lt;BR /&gt;compromise the stability of Impala.&lt;BR /&gt;&lt;BR /&gt;My recommendation is to rethink your workflow to avoid the need for this&lt;BR /&gt;kind of approach if possible.&lt;BR /&gt;&lt;BR /&gt;- Tim&lt;BR /&gt;</description>
    <pubDate>Mon, 30 Jan 2017 18:31:53 GMT</pubDate>
    <dc:creator>Tim Armstrong</dc:creator>
    <dc:date>2017-01-30T18:31:53Z</dc:date>
    <item>
      <title>Is there is  any method to read property config file from impala  UDF?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50140#M15173</link>
      <description>&lt;P&gt;Is there is any way&amp;nbsp;to read config file from C++ impala UDF ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will be &amp;nbsp;better if we can read the property configured in&amp;nbsp;&lt;STRONG&gt;conf.impala/core-site.xm&lt;/STRONG&gt;l or&amp;nbsp;&lt;STRONG&gt;conf.impala/hdfs-site.xml from impala UDF.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:58:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50140#M15173</guid>
      <dc:creator>AkhilTM</dc:creator>
      <dc:date>2022-09-16T10:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there is any method to read property config file from impala UDF?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50156#M15174</link>
      <description>Hi Akhil,&lt;BR /&gt;It is technically possible to read files from an Impala C++ UDF, since we&lt;BR /&gt;don't sandbox UDFs. However, I would strongly recommend against this&lt;BR /&gt;because it can lead to resource usage problems and any mistakes can&lt;BR /&gt;compromise the stability of Impala.&lt;BR /&gt;&lt;BR /&gt;My recommendation is to rethink your workflow to avoid the need for this&lt;BR /&gt;kind of approach if possible.&lt;BR /&gt;&lt;BR /&gt;- Tim&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jan 2017 18:31:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50156#M15174</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2017-01-30T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there is any method to read property config file from impala UDF?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50158#M15175</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the value of&amp;nbsp;fs.defaultFS property from &lt;STRONG&gt;hdfs-site.xml&amp;nbsp;&lt;/STRONG&gt;, Impala already have it's value stored somewhere I guess. Is there is any way to get this property value?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 19:12:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50158#M15175</guid>
      <dc:creator>AkhilTM</dc:creator>
      <dc:date>2017-01-30T19:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there is any method to read property config file from impala UDF?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50184#M15176</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use this piece of code in my impala UDF? what are the libraries and headers I need to include to use this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;const char* default_fs = ExecEnv::GetInstance()-&amp;gt;default_fs().c_str();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this in&amp;nbsp;&lt;STRONG&gt;Impala-cdh5-trunk/be/src/util/hdfs-util.cc , Impala-cdh5-trunk/be/src/runtime/exec-env.cc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there is any alternate method to get the value of &lt;STRONG&gt;default_fs&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 12:04:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50184#M15176</guid>
      <dc:creator>AkhilTM</dc:creator>
      <dc:date>2017-01-31T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there is any method to read property config file from impala UDF?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50219#M15177</link>
      <description>&lt;P&gt;We don't support UDFs messing around with Impala's runtime data structures. We don't expose this to UDFs since UDFs aren't really meant to do things like I/O.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 01:25:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-is-any-method-to-read-property-config-file-from/m-p/50219#M15177</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2017-02-01T01:25:15Z</dc:date>
    </item>
  </channel>
</rss>

