1、首先运行hbase thrift服务
./hbase-daemon.sh start thrift
2、由于我使用的是windows,所以需要下载thrift.exe,并将其配置到环境变量Path中
thrift下载地址:https://www.apache.org/dyn/closer.cgi?path=/thrift/0.16.0/thrift-0.16.0.exe
3、复制Hbase.thrift到项目跟目录,并使用thrift命令生成文件
thrift有两个版本,thrift1和thrift2,这边使用是thrift1
hbase.thrift下载地址:https://github.com/apache/hbase/tree/rel/2.4.4/hbase-thrift/src/main/resources/org/apache
202



被折叠的 条评论
为什么被折叠?



