Support Questions
Find answers, ask questions, and share your expertise

Create Hive UDF with native library

Create Hive UDF with native library

Hi,

We're trying to create a hive UDF with native libraries (*.so). It throws error when executed. We tried setting the *.so file using system.load("/<resources_loc/lib_name.so>") but didn't work when executed in the cluster.

Do we need to set the following in hive-env.sh?

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:{{jdbc_libs_dir}}"

Please suggest!

Thanks.

1 REPLY 1