<?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: Impala UDF unable to load the .so file from HDFS in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304420#M222026</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11593"&gt;@Tim Armstrong&lt;/a&gt;&amp;nbsp; it worked like charm after changing the gcc version. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2020 11:13:28 GMT</pubDate>
    <dc:creator>parthk</dc:creator>
    <dc:date>2020-10-15T11:13:28Z</dc:date>
    <item>
      <title>Impala UDF unable to load the .so file from HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304094#M221879</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are planning to Impala UDFs and UDAs. To try things out we started by exploring the examples given in the &lt;A href="https://github.com/cloudera/impala-udf-samples" target="_self"&gt;cloudera github repo.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After building the .so file using the make utility when I try to create the function using the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;create function has_vowels (string) returns boolean location '/user/hive/udfs/libudfsample.so' symbol='HasVowels';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; We are getting the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: AnalysisException: Could not load binary: /&amp;lt;hdfs_path&amp;gt;/udfs/libudfsample.so
Unable to load /var/lib/impala/udfs/libudfsample.9909.1.so
dlerror: /opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/impala/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /var/lib/impala/udfs/libudfsample.9909.1.so)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following are the error logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;org.apache.impala.common.AnalysisException: Could not load binary: /user/parth.khatwani/udfs/libudfsample.so
Unable to load /var/lib/impala/udfs/libudfsample.9909.1.so
dlerror: /opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/impala/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /var/lib/impala/udfs/libudfsample.9909.1.so)

	at org.apache.impala.catalog.Function.lookupSymbol(Function.java:442)
	at org.apache.impala.analysis.CreateUdfStmt.analyze(CreateUdfStmt.java:92)
	at org.apache.impala.analysis.AnalysisContext.analyze(AnalysisContext.java:451)
	at org.apache.impala.analysis.AnalysisContext.analyzeAndAuthorize(AnalysisContext.java:421)
	at org.apache.impala.service.Frontend.doCreateExecRequest(Frontend.java:1285)
	at org.apache.impala.service.Frontend.getTExecRequest(Frontend.java:1252)
	at org.apache.impala.service.Frontend.createExecRequest(Frontend.java:1222)
	at org.apache.impala.service.JniFrontend.createExecRequest(JniFrontend.java:167)
I1009 02:42:52.638576 15136 status.cc:124] 3c48433373076c77:30eff6ff00000000] AnalysisException: Could not load binary: /user/parth.khatwani/udfs/libudfsample.so
Unable to load /var/lib/impala/udfs/libudfsample.9909.1.so&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to figure out what's wrong here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 02:47:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304094#M221879</guid>
      <dc:creator>parthk</dc:creator>
      <dc:date>2020-10-09T02:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Impala UDF unable to load the .so file from HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304124#M221894</link>
      <description>&lt;P&gt;What OS and compiler version are you using to build the UDF? This looks like it is probably a consequence of it being built with a newer gcc version than the one use to build Impala (gcc 4.9.2)&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 17:28:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304124#M221894</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2020-10-09T17:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Impala UDF unable to load the .so file from HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304163#M221918</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11593"&gt;@Tim Armstrong&lt;/a&gt;&amp;nbsp; I am using gcc version 5.4.0 and&amp;nbsp; OS is ubuntu 16.04 xenial. Will it work If I compile it with 4.9.2?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 06:53:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304163#M221918</guid>
      <dc:creator>parthk</dc:creator>
      <dc:date>2020-10-12T06:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Impala UDF unable to load the .so file from HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304305#M221977</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/33300"&gt;@parthk&lt;/a&gt;yeah I'd expect so. Sometimes this C++ inter-version compatibility is a bear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 22:44:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304305#M221977</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2020-10-13T22:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Impala UDF unable to load the .so file from HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304420#M222026</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11593"&gt;@Tim Armstrong&lt;/a&gt;&amp;nbsp; it worked like charm after changing the gcc version. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 11:13:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-UDF-unable-to-load-the-so-file-from-HDFS/m-p/304420#M222026</guid>
      <dc:creator>parthk</dc:creator>
      <dc:date>2020-10-15T11:13:28Z</dc:date>
    </item>
  </channel>
</rss>

