Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Facing error while "create function" on impala; Cloudera 5.14.2

Highlighted

Facing error while "create function" on impala; Cloudera 5.14.2

New Contributor

Hi All,

 

I am trying to run the sample add function in impala udf-samples.cc.

I got the prerequisites done.

got the build using make.

copied the file "libudfsample.so" to hadoop fs

While running create function using that location, I get this error. Any solution please.

 

[hdp-stage-dn-stage101.bo.shopzilla.seastg:21000] > create function udf_add(int, int) returns int location '/data/dw/impala_udfs/libudfsample.so' symbol='AddUdf';
Query: create function udf_add(int, int) returns int location '/data/dw/impala_udfs/libudfsample.so' symbol='AddUdf'
ERROR: AnalysisException: Could not load binary: /data/dw/impala_udfs/libudfsample.so
Unable to load /var/lib/impala/udfs/libudfsample.8434.0.so
dlerror: /opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/impala/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /var/lib/impala/udfs/libudfsample.8434.0.so)


[hdp-stage-dn-stage101.bo.shopzilla.seastg:21000] >

 

Do we need to install anything on the impala servers. There was no mention of it in the UDF document.

 

Thanks,

Gilli

1 REPLY 1
Highlighted

Re: Facing error while "create function" on impala; Cloudera 5.14.2

Explorer

@gilli  Did you find any solution to this? I am facing the same issue.

 

Don't have an account?
Coming from Hortonworks? Activate your account here