Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Create Hive UDF with native library

Highlighted

Create Hive UDF with native library

New Contributor

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
Don't have an account?
Coming from Hortonworks? Activate your account here