Closed maxmzkr closed 8 years ago
You have to have the same LLVM version on your path that was used to compile Impala. I have code in my bash profile that looks like this:
export IBIS_TEST_HDFS_SUPERUSER=wesm
export IBIS_TEST_LLVM_CONFIG=$NATIVE_TOOLCHAIN/llvm-3.3-p1/bin/llvm-config
export IBIS_POSTGRES_USER=REDACTED
export IBIS_POSTGRES_PASS=REDACTED
export IBIS_WEBHDFS_PORT=5070
function ibis_toolchain {
export PATH="$($IBIS_TEST_LLVM_CONFIG --bindir):$PATH"
export IMPALA_GCC_VERSION=4.9.2
echo $PATH
}
Impala versions prior to 2.6.0 are using LLVM 3.3 (see IMPALA-775 where the project upgraded to 3.8). You can take advantage of https://github.com/cloudera/native-toolchain if you need to build it from source.
It would be nice to start a developer documentation Markdown document; so far the only docs are for users.
In the interim I would also recommend adding --skip-udf
to your py.test call to skip over these tests
Thanks! That should help!
I'm trying to get my test environment setup and I've gotten everything to work other than the udfs.
My tests fail with this
It looks like my udfs are being compiled incorrectly. I'm not sure how to go about debugging this. Do you think this is a version issue with llvm/clang? Do I have my impala environment setup incorrectly? Or am I just doing something else completely wrong?