安装环境
thrift 0.10
hadoop-2.7.7
hbase-1.2.8
hadoop安装参考 https://www.cnblogs.com/leesf456/p/4795507.html
hbase安装参考 https://blog.csdn.net/hhy1107786871/article/details/88551234
-
注意hbase和hadoop版本的对应关系
-
一开始thrift安装的0.13版本,用hbase.thrift生成c++连接hbase的代码,编译过程一直下面报错
client.cpp:14:42: error: variable ‘boost::shared_ptr< apache::thrift::protocol::TProtocol> protocol’ has initializer but incomplete type boost::shared_ptr< TProtocol> protocol(new TBinaryProtocol(transport));
后来thrift改成0.10版本,编译正常