通过thrift生成hive的php client api

来源:互联网 发布:淘宝网客服几点上班 编辑:程序博客网 时间:2024/06/03 16:05

1、在debian下安装thrift

 

2、接下来要安装fb303,进入到thrift的源码目录,cd contrib/fb303; ./configure; make && make install

 

3、/usr/local/bin/thrift -o <OUTPUTDIR> -I /usr/local/share/ --gen php *.thrift

   -o OUTPUTDIR 保存生成文件的目录,-I /usr/local/share/ 是fb303所在的目录 *.thrift 是生成api需要的文件

原创粉丝点击