Answer the question
In order to leave comments, you need to log in
How to solve an error when compiling udf for Impala?
Hello.
In impala, you need to create a UDF to calculate the hash sum, I found a project on github ( https://github.com/ScalefreeCOM/impala-crypto-udf )
When compiling, it gives the following error:
[email protected] impala-crypto-udf-master $ make
[ 50%] Building CXX object CMakeFiles/udfcrypto.dir/udf-crypto.cc.o
In file included from /home/username/impala-crypto-udf-master/udf-crypto.cc:27:0:
/home/username/impala-crypto-udf-master/sm3.h:23:24: error: expected unqualified-id before numeric constant
class BOTAN_PUBLIC_API(2,2) SM3 final : public MDx_HashFunction
^
/home/username/impala-crypto-udf-master/sm3.h:23:24: error: expected ‘)’ before numeric constant
/home/username/impala-crypto-udf-master/udf-crypto.cc:2133:1: error: expected ‘}’ at end of input
}
^
make[2]: *** [CMakeFiles/udfcrypto.dir/udf-crypto.cc.o] Error 1
make[1]: *** [CMakeFiles/udfcrypto.dir/all] Error 2
make: *** [all] Error 2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question