Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Is there an Impala UDF C++ dev package for Red Hat 6.8 and g++ 4.4.7?

avatar
Explorer

Hi,

 

On Red Hat 6.8 the highest version of g++ supported is 4.4.7 (see this Red Hat document). This compiler can't handle some of the later C++ language features used by the Impala UDF development package. The following has to be done to get the sample codes in "impala-udf-samples-master" to compile:

 

  1. #define keyword "noexcept" as "throw()"
  2. #include <memory> to access std::shared_ptr
  3. Add compiler flag "-std=c++0x" so std::shared_ptr is recognized

Even so, the generated binaries "uda-sample-test" and "udf-sample-test" when run from the command line crash right away with segmentation faults.

 

Is there a package that would support this old version of g++?

 

Thanks,

Brian Hu

1 ACCEPTED SOLUTION

avatar

This is a bug in the impala-udf-dev package versions 5.9.x to 5.10.x. I was alway intended to be compilable with older versions of gcc.

 

It will be fixed in 5.11+ once that is released. If you downgrade the package to a version 5.8.x or earlier it should also work.

View solution in original post

1 REPLY 1

avatar

This is a bug in the impala-udf-dev package versions 5.9.x to 5.10.x. I was alway intended to be compilable with older versions of gcc.

 

It will be fixed in 5.11+ once that is released. If you downgrade the package to a version 5.8.x or earlier it should also work.