linux 安裝配置thrift 操作hbase
阿新 • • 發佈:2022-05-18
剛開始我使用hbase-2.3.7,hive使用 apache-hive-1.2.2-bin,結果再hive中建立外部表關聯的hbase出錯(https://www.cnblogs.com/Live-up-to-your-youth/p/16280924.html)。
無奈之下降低了hbase的版本,使用hbase-1.7.1,卻發現hbase-1.7.1/lib下沒有hbase-thrift-1.7.1.jar。又好無奈,只能去安裝了。
1.下載thrift-0.11.0.tar.gz
網址:https://archive.apache.org/dist/thrift/0.11.0/
2.安裝必要環境
yum -y install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel Python-devel ruby-devel crypto-utils
3.上傳thrift-0.11.0.tar.gz到/usr/local資料夾
4.解壓
tar zxf thrift-0.11.0.tar.gz
5.在cd thrift-0.11.0/資料夾下執行
./configure --with-cpp --with-boost --with-python --without-csharp --with-java --without-erlang --without-perl --with-php --without-php_extension --without-ruby --without-haskell --without-go
6.編譯
make
7.安裝
sudo make install
8.啟動hbase的thrift服務
在hbase安裝目錄的bin下執行
./hbase-daemon.sh start thrift