?????? loading native library in hive UDF

2020-04-16 Thread Xiaobin
Thank you Kumar, It works!   How about the second Question: I add an archive file (*.tar.gz) by using ADD ARCHIVE *.tar.gz, it seems that this file is not unarchived automatically. I am also confused. --  -- ??: "Manoj Kumar"

Re: loading native library in hive UDF

2020-04-14 Thread Manoj Kumar
Hi, Maybe you can try adding native libraries (*.so) files along with its all dependent libs (*.so) in *hadoop-{version}/lib/native* $ld libcustom.so --> should show all shared libs resolved from local hadoop-{version}/lib/native folder Above path is shared across the hadoop ecosystem and make

loading native library in hive UDF

2020-04-14 Thread Xiaobin
Hi, all: I'm a beginner of hive. Recently I want to implement a UDF in hive and this function is code with java but call some method written in C++. So my UDF need to load some native libraries (*.so). I have already added the so to hive by using Add file *.so. But it seems that hive doesn't add