hdfs3 icon indicating copy to clipboard operation
hdfs3 copied to clipboard

Can not find the shared library: libhdfs3.so

Open iniyanp opened this issue 7 years ago • 5 comments

Hi,

I am trying to install hdfs3 using pip in centos. But when I try to use HDFileSystem(), it is throwing Can not find the shared library: libhdfs3.so ERROR.

Steps I followed:

curl -L "https://bintray.com/wangzw/rpm/rpm" -o /etc/yum.repos.d/bintray-wangzw-rpm.repo \
    && yum makecache \
    && yum install -y libhdfs3 libhdfs3-devel \
    && pip install hdfs3

I have tried installing via conda. It works. But unfortunately we can't use conda in our environment for some reasons.

Could anyone help me? Thanks

iniyanp avatar Jun 28 '18 17:06 iniyanp

check lbhdfs3.so in LD_LIBRARY_PATH. or libdhfs3.so version doesn't match hdfs3 needed. or you could just compile from source https://github.com/ContinuumIO/libhdfs3-downstream

gravitywp avatar Jul 13 '18 03:07 gravitywp

To diagnose further, you could try running the ctypes load command in the lib module yourself, to see what the exact error was.

martindurant avatar Jul 13 '18 03:07 martindurant

Note that lib/hdfs3 has never been tested via yum by me. Since I see "wangzw" in the URL, I suspect it may be an old build. I recommend using conda for the installation of complicated python-related binary libraries.

martindurant avatar Jul 13 '18 03:07 martindurant

I also have this problem in a mac. fresh install using conda did not help

chanansh avatar Apr 08 '19 06:04 chanansh

Same suggestions as above... Note that lib/hdfs3 has not changed or been released in some time, but other libraries have moved on.

martindurant avatar Apr 08 '19 12:04 martindurant