M
M
MacJei2019-11-25 20:28:50
C++ / C#
MacJei, 2019-11-25 20:28:50

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

Help me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MacJei, 2020-04-29
@MacJei

The issue was resolved by deleting the hash functions that I did not need, leaving only md5 and sha. Also added to the folder: sample impala from cloudera and data from the crypto repository from github

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question