linux 安装配置thrift 操作hbase


刚开始我使用hbase-2.3.7,hive使用 apache-hive-1.2.2-bin,结果再hive中创建外部表关联的hbase出错()。

无奈之下降低了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