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:
- #define keyword "noexcept" as "throw()"
- #include <memory> to access std::shared_ptr
- 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