Ubuntu18.04 安装配置HBase

安装环境
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

  1. 注意hbase和hadoop版本的对应关系

  2. hbase安装参考文章中,配置hbase-site.xml的地方,< name>hbase.rootdir< /name>应该为 < name>hbase.root.dir< /name>

  3. 一开始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版本,编译正常

发布了3 篇原创文章 · 获赞 0 · 访问量 49

猜你喜欢

转载自blog.csdn.net/weixin_46381158/article/details/104577774