Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Installation steps to install hdfs3 and underlying libhdfs3 on a Mac
# required downloading source of cmakem protobuf, gsasl as well as hdfs3
mv ~/Downloads/cmake-3.9.0-rc5.tar.gz .
tar -zxf cmake-3.9.0-rc5.tar.gz
cd cmake-3.9.0-rc5
./bootstrap && make
sudo make install
mv ~/Downloads/protobuf-3.3.0.tar.gz .
tar -zxf protobuf-3.3.0.tar.gz
cd protobuf-3.3.0
./configure && make
sudo make install
mv ~/Downloads/gsasl-1.8.0.tar.gz .
tar -zxf gsasl-1.8.0.tar.gz
cd gsasl-1.8.0
./configure && make
sudo make install
mv ~/Downloads/pivotalrd-libhdfs3-2.2.31.tar.gz .
tar -zxf pivotalrd-libhdfs3-2.2.31.tar.gz
cd pivotalrd-libhdfs3-2.2.31
mkdir build
cd build
bash ../bootstrap
sudo make install # doesnt seem to work
cd ..
sudo cp -r ./dist/include/hdfs /usr/local/include
sudo cp ./dist/lib/* /usr/local/lib
sudo cp ./dist/lib/pkgconfig/libhdfs3.pc /usr/local/lib/pkgconfig/
cd ..
virtualenv venv
. venv/bin/activate
pip install hdfs3
vi venv/lib/python2.7/site-packages/hdfs3/ # edit => libhdfs3.dylib
>>> import hdfs3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.